import * as pulumi from "@pulumi/pulumi"; /** * Associates an EC2 managed prefix list with a Network Manager Cloud WAN core network. Once associated, the prefix list can be referenced in the core network policy document. * * > **NOTE:** The prefix list must be defined in the [Cloud WAN home region](https://docs.aws.amazon.com/network-manager/latest/cloudwan/what-is-cloudwan.html#cloudwan-home-region) (us-west-2). Although defined in the Cloud WAN home region, the prefix-list based policy will apply globally to all the relevant core network edges (regions) in your core network. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const prefixList = new aws.ec2.ManagedPrefixList("prefix_list", { * entries: [{ * cidr: "10.0.0.0/8", * description: "Example CIDR", * }], * name: "example", * addressFamily: "IPv4", * maxEntries: 5, * }); * const plAssociation = new aws.networkmanager.PrefixListAssociation("pl_association", { * coreNetworkId: coreNetwork.id, * prefixListArn: prefixList.arn, * prefixListAlias: "exampleprefixlist", * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `coreNetworkId` (String) Core network ID. * * `prefixListArn` (String) Prefix list ARN. * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * Using `pulumi import`, import `aws.networkmanager.PrefixListAssociation` using the core network ID and prefix list ARN separated by a comma (`,`). For example: * * ```sh * $ pulumi import aws:networkmanager/prefixListAssociation:PrefixListAssociation example core-network-0fab1c1e1e1e1e1e1,arn:aws:ec2:us-west-2:123456789012:prefix-list/pl-0123456789abcdef0 * ``` */ export declare class PrefixListAssociation extends pulumi.CustomResource { /** * Get an existing PrefixListAssociation resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: PrefixListAssociationState, opts?: pulumi.CustomResourceOptions): PrefixListAssociation; /** * Returns true if the given object is an instance of PrefixListAssociation. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is PrefixListAssociation; /** * The ID of the core network to associate the prefix list with. */ readonly coreNetworkId: pulumi.Output; /** * An alias for the prefix list association. This alias can be used to reference the prefix list in the core network policy document. Must start with a letter, be less than 64 characters long, and may only include letters and numbers. */ readonly prefixListAlias: pulumi.Output; /** * The ARN of the EC2 managed prefix list to associate with the core network. */ readonly prefixListArn: pulumi.Output; /** * Create a PrefixListAssociation resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: PrefixListAssociationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering PrefixListAssociation resources. */ export interface PrefixListAssociationState { /** * The ID of the core network to associate the prefix list with. */ coreNetworkId?: pulumi.Input; /** * An alias for the prefix list association. This alias can be used to reference the prefix list in the core network policy document. Must start with a letter, be less than 64 characters long, and may only include letters and numbers. */ prefixListAlias?: pulumi.Input; /** * The ARN of the EC2 managed prefix list to associate with the core network. */ prefixListArn?: pulumi.Input; } /** * The set of arguments for constructing a PrefixListAssociation resource. */ export interface PrefixListAssociationArgs { /** * The ID of the core network to associate the prefix list with. */ coreNetworkId: pulumi.Input; /** * An alias for the prefix list association. This alias can be used to reference the prefix list in the core network policy document. Must start with a letter, be less than 64 characters long, and may only include letters and numbers. */ prefixListAlias: pulumi.Input; /** * The ARN of the EC2 managed prefix list to associate with the core network. */ prefixListArn: pulumi.Input; } //# sourceMappingURL=prefixListAssociation.d.ts.map