// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.AliCloud.Cen
{
    public static class GetTransitRouterVbrAttachments
    {
        /// <summary>
        /// This data source provides CEN Transit Router VBR Attachments available to the user.[What is Cen Transit Router VBR Attachments](https://help.aliyun.com/document_detail/261226.html)
        /// 
        /// &gt; **NOTE:** Available in 1.126.0+
        /// </summary>
        public static Task<GetTransitRouterVbrAttachmentsResult> InvokeAsync(GetTransitRouterVbrAttachmentsArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetTransitRouterVbrAttachmentsResult>("alicloud:cen/getTransitRouterVbrAttachments:getTransitRouterVbrAttachments", args ?? new GetTransitRouterVbrAttachmentsArgs(), options.WithDefaults());

        /// <summary>
        /// This data source provides CEN Transit Router VBR Attachments available to the user.[What is Cen Transit Router VBR Attachments](https://help.aliyun.com/document_detail/261226.html)
        /// 
        /// &gt; **NOTE:** Available in 1.126.0+
        /// </summary>
        public static Output<GetTransitRouterVbrAttachmentsResult> Invoke(GetTransitRouterVbrAttachmentsInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetTransitRouterVbrAttachmentsResult>("alicloud:cen/getTransitRouterVbrAttachments:getTransitRouterVbrAttachments", args ?? new GetTransitRouterVbrAttachmentsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetTransitRouterVbrAttachmentsArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// ID of the CEN instance.
        /// </summary>
        [Input("cenId", required: true)]
        public string CenId { get; set; } = null!;

        [Input("ids")]
        private List<string>? _ids;

        /// <summary>
        /// A list of resource id. The element value is same as `transit_router_id`.
        /// </summary>
        public List<string> Ids
        {
            get => _ids ?? (_ids = new List<string>());
            set => _ids = value;
        }

        [Input("outputFile")]
        public string? OutputFile { get; set; }

        /// <summary>
        /// The status of the resource. Valid values `Attached`, `Attaching` and `Detaching`.
        /// </summary>
        [Input("status")]
        public string? Status { get; set; }

        /// <summary>
        /// ID of the transit router.
        /// </summary>
        [Input("transitRouterId")]
        public string? TransitRouterId { get; set; }

        public GetTransitRouterVbrAttachmentsArgs()
        {
        }
        public static new GetTransitRouterVbrAttachmentsArgs Empty => new GetTransitRouterVbrAttachmentsArgs();
    }

    public sealed class GetTransitRouterVbrAttachmentsInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// ID of the CEN instance.
        /// </summary>
        [Input("cenId", required: true)]
        public Input<string> CenId { get; set; } = null!;

        [Input("ids")]
        private InputList<string>? _ids;

        /// <summary>
        /// A list of resource id. The element value is same as `transit_router_id`.
        /// </summary>
        public InputList<string> Ids
        {
            get => _ids ?? (_ids = new InputList<string>());
            set => _ids = value;
        }

        [Input("outputFile")]
        public Input<string>? OutputFile { get; set; }

        /// <summary>
        /// The status of the resource. Valid values `Attached`, `Attaching` and `Detaching`.
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

        /// <summary>
        /// ID of the transit router.
        /// </summary>
        [Input("transitRouterId")]
        public Input<string>? TransitRouterId { get; set; }

        public GetTransitRouterVbrAttachmentsInvokeArgs()
        {
        }
        public static new GetTransitRouterVbrAttachmentsInvokeArgs Empty => new GetTransitRouterVbrAttachmentsInvokeArgs();
    }


    [OutputType]
    public sealed class GetTransitRouterVbrAttachmentsResult
    {
        /// <summary>
        /// A list of CEN Transit Router VBR Attachments. Each element contains the following attributes:
        /// </summary>
        public readonly ImmutableArray<Outputs.GetTransitRouterVbrAttachmentsAttachmentResult> Attachments;
        public readonly string CenId;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// A list of CEN Transit Router VBR attachment IDs.
        /// </summary>
        public readonly ImmutableArray<string> Ids;
        public readonly string? OutputFile;
        /// <summary>
        /// The status of the transit router attachment.
        /// </summary>
        public readonly string? Status;
        public readonly string? TransitRouterId;

        [OutputConstructor]
        private GetTransitRouterVbrAttachmentsResult(
            ImmutableArray<Outputs.GetTransitRouterVbrAttachmentsAttachmentResult> attachments,

            string cenId,

            string id,

            ImmutableArray<string> ids,

            string? outputFile,

            string? status,

            string? transitRouterId)
        {
            Attachments = attachments;
            CenId = cenId;
            Id = id;
            Ids = ids;
            OutputFile = outputFile;
            Status = status;
            TransitRouterId = transitRouterId;
        }
    }
}
