import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an AWS Network Firewall Container Association. A container association links Amazon ECS or Amazon EKS clusters to Network Firewall, resolving container IP addresses into a dynamic IP set you can reference from stateful rule groups. * * ## Example Usage * * ### EKS Cluster * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.networkfirewall.ContainerAssociation("example", { * containerMonitoringConfigurations: [{ * attributeFilters: [{ * key: "app", * value: "backend", * }], * clusterArn: exampleAwsEksCluster.arn, * }], * containerAssociationName: "example-eks-association", * type: "EKS", * description: "Association for production EKS cluster", * tags: { * Name: "example", * Environment: "production", * }, * }); * ``` * * ### ECS Cluster * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.networkfirewall.ContainerAssociation("example", { * containerMonitoringConfigurations: [{ * clusterArn: exampleAwsEcsCluster.arn, * }], * containerAssociationName: "example-ecs-association", * type: "ECS", * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `containerAssociationArn` (String) ARN of the container association. * * Using `pulumi import`, import Network Firewall Container Association using the `containerAssociationArn`. For example: * * ```sh * $ pulumi import aws:networkfirewall/containerAssociation:ContainerAssociation example arn:aws:network-firewall:us-west-2:123456789012:container-association/example * ``` */ export declare class ContainerAssociation extends pulumi.CustomResource { /** * Get an existing ContainerAssociation 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?: ContainerAssociationState, opts?: pulumi.CustomResourceOptions): ContainerAssociation; /** * Returns true if the given object is an instance of ContainerAssociation. 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 ContainerAssociation; /** * ARN of the container association. */ readonly containerAssociationArn: pulumi.Output; /** * Name of the container association. You can't change the name after creation. Must be between 1 and 128 characters and contain only alphanumeric characters and hyphens. */ readonly containerAssociationName: pulumi.Output; /** * One or more monitoring configurations, up to 5. See `containerMonitoringConfiguration` Block below. */ readonly containerMonitoringConfigurations: pulumi.Output; /** * Description of the container association. */ readonly description: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * Number of CIDR blocks resolved from the monitored containers for this container association. */ readonly resolvedCidrCount: pulumi.Output; /** * Map of resource tags to associate with the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; readonly timeouts: pulumi.Output; /** * Container orchestration platform for the clusters in this association. Valid values: `ECS`, `EKS`. You can't change the type after creation. */ readonly type: pulumi.Output; /** * Token used for optimistic locking. */ readonly updateToken: pulumi.Output; /** * Create a ContainerAssociation 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: ContainerAssociationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ContainerAssociation resources. */ export interface ContainerAssociationState { /** * ARN of the container association. */ containerAssociationArn?: pulumi.Input; /** * Name of the container association. You can't change the name after creation. Must be between 1 and 128 characters and contain only alphanumeric characters and hyphens. */ containerAssociationName?: pulumi.Input; /** * One or more monitoring configurations, up to 5. See `containerMonitoringConfiguration` Block below. */ containerMonitoringConfigurations?: pulumi.Input[] | undefined>; /** * Description of the container association. */ description?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Number of CIDR blocks resolved from the monitored containers for this container association. */ resolvedCidrCount?: pulumi.Input; /** * Map of resource tags to associate with the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; timeouts?: pulumi.Input; /** * Container orchestration platform for the clusters in this association. Valid values: `ECS`, `EKS`. You can't change the type after creation. */ type?: pulumi.Input; /** * Token used for optimistic locking. */ updateToken?: pulumi.Input; } /** * The set of arguments for constructing a ContainerAssociation resource. */ export interface ContainerAssociationArgs { /** * Name of the container association. You can't change the name after creation. Must be between 1 and 128 characters and contain only alphanumeric characters and hyphens. */ containerAssociationName: pulumi.Input; /** * One or more monitoring configurations, up to 5. See `containerMonitoringConfiguration` Block below. */ containerMonitoringConfigurations: pulumi.Input[]>; /** * Description of the container association. */ description?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Map of resource tags to associate with the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; timeouts?: pulumi.Input; /** * Container orchestration platform for the clusters in this association. Valid values: `ECS`, `EKS`. You can't change the type after creation. */ type: pulumi.Input; } //# sourceMappingURL=containerAssociation.d.ts.map