import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Access Entry Policy Association for an EKS Cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.eks.AccessPolicyAssociation("example", { * accessScope: { * type: "namespace", * namespaces: ["example-namespace"], * }, * clusterName: exampleAwsEksCluster.name, * policyArn: "arn:aws:eks::aws:cluster-access-policy/AmazonEKSViewPolicy", * principalArn: exampleAwsIamUser.arn, * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `clusterName` (String) Name of the EKS Cluster. * * `principalArn` (String) IAM principal ARN. * * `policyArn` - (String) Access policy ARN. * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import Access Entry Policy Associations using `clusterName`, `principalArn`, and `policyArn` separated by an octothorp (`#`). For example: * * ```sh * $ pulumi import aws:eks/accessPolicyAssociation:AccessPolicyAssociation example example-cluster#arn:aws:iam::123456789012:role/example#arn:aws:eks::aws:cluster-access-policy/AmazonEKSViewPolicy * ``` */ export declare class AccessPolicyAssociation extends pulumi.CustomResource { /** * Get an existing AccessPolicyAssociation 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?: AccessPolicyAssociationState, opts?: pulumi.CustomResourceOptions): AccessPolicyAssociation; /** * Returns true if the given object is an instance of AccessPolicyAssociation. 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 AccessPolicyAssociation; /** * The configuration block to determine the scope of the access. See `accessScope` Block below. */ readonly accessScope: pulumi.Output; /** * Date and time in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) that the policy was associated. */ readonly associatedAt: pulumi.Output; /** * Name of the EKS Cluster. */ readonly clusterName: pulumi.Output; /** * Date and time in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) that the policy was updated. */ readonly modifiedAt: pulumi.Output; /** * The ARN of the access policy that you're associating. */ readonly policyArn: pulumi.Output; /** * The IAM Principal ARN which requires Authentication access to the EKS cluster. */ readonly principalArn: 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; /** * Create a AccessPolicyAssociation 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: AccessPolicyAssociationArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AccessPolicyAssociation resources. */ export interface AccessPolicyAssociationState { /** * The configuration block to determine the scope of the access. See `accessScope` Block below. */ accessScope?: pulumi.Input; /** * Date and time in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) that the policy was associated. */ associatedAt?: pulumi.Input; /** * Name of the EKS Cluster. */ clusterName?: pulumi.Input; /** * Date and time in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) that the policy was updated. */ modifiedAt?: pulumi.Input; /** * The ARN of the access policy that you're associating. */ policyArn?: pulumi.Input; /** * The IAM Principal ARN which requires Authentication access to the EKS cluster. */ principalArn?: 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; } /** * The set of arguments for constructing a AccessPolicyAssociation resource. */ export interface AccessPolicyAssociationArgs { /** * The configuration block to determine the scope of the access. See `accessScope` Block below. */ accessScope: pulumi.Input; /** * Name of the EKS Cluster. */ clusterName: pulumi.Input; /** * The ARN of the access policy that you're associating. */ policyArn: pulumi.Input; /** * The IAM Principal ARN which requires Authentication access to the EKS cluster. */ principalArn: 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; } //# sourceMappingURL=accessPolicyAssociation.d.ts.map