import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an EKS Capability for an EKS cluster. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.eks.Capability("example", { * configuration: { * argoCd: { * awsIdc: { * idcInstanceArn: "arn:aws:sso:::instance/ssoins-1234567890abcdef0", * }, * namespace: "argocd", * }, * }, * clusterName: exampleAwsEksCluster.name, * capabilityName: "argocd", * type: "ARGOCD", * roleArn: exampleAwsIamRole.arn, * deletePropagationPolicy: "RETAIN", * tags: { * Name: "example-capability", * }, * }); * ``` * * ### Controller Log Delivery * * Capability controllers run in AWS-managed infrastructure outside your cluster, and their logs are exposed through [CloudWatch Vended Logs](https://docs.aws.amazon.com/eks/latest/userguide/capabilities-controller-logs.html) rather than the EKS API. Configure delivery with the `aws.cloudwatch.LogDeliverySource`, `aws.cloudwatch.LogDeliveryDestination`, and `aws.cloudwatch.LogDelivery` resources, using the capability ARN as the source. Valid log types are `EKS_CAPABILITY_ACK_LOGS` (ACK), `EKS_CAPABILITY_KRO_LOGS` (kro), and `EKS_CAPABILITY_ARGOCD_APPLICATION_LOGS`, `EKS_CAPABILITY_ARGOCD_APPLICATIONSET_LOGS`, `EKS_CAPABILITY_ARGOCD_COMMITSERVER_LOGS`, `EKS_CAPABILITY_ARGOCD_REPOSERVER_LOGS`, and `EKS_CAPABILITY_ARGOCD_SERVER_LOGS` (Argo CD, one per controller component). * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.eks.Capability("example", { * clusterName: exampleAwsEksCluster.name, * capabilityName: "ack", * type: "ACK", * roleArn: exampleAwsIamRole.arn, * deletePropagationPolicy: "RETAIN", * }); * const ack = new aws.cloudwatch.LogGroup("ack", {name: "/aws/eks/example/capabilities/ack"}); * const ackLogDeliverySource = new aws.cloudwatch.LogDeliverySource("ack", { * name: "eks-capability-ack-logs", * logType: "EKS_CAPABILITY_ACK_LOGS", * resourceArn: example.arn, * }); * const ackLogDeliveryDestination = new aws.cloudwatch.LogDeliveryDestination("ack", { * deliveryDestinationConfiguration: { * destinationResourceArn: ack.arn, * }, * name: "eks-capability-ack-logs", * }); * const ackLogDelivery = new aws.cloudwatch.LogDelivery("ack", { * deliverySourceName: ackLogDeliverySource.name, * deliveryDestinationArn: ackLogDeliveryDestination.arn, * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `clusterName` (String) Name of the EKS Cluster. * * `capabilityName` (String) Name of the capability. * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import Capabilities using `clusterName` and `capabilityName` separated by a comma (`,`). For example: * * ```sh * $ pulumi import aws:eks/capability:Capability example example-cluster,example-capability * ``` */ export declare class Capability extends pulumi.CustomResource { /** * Get an existing Capability 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?: CapabilityState, opts?: pulumi.CustomResourceOptions): Capability; /** * Returns true if the given object is an instance of Capability. 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 Capability; /** * ARN of the capability. */ readonly arn: pulumi.Output; /** * Name of the capability. Must be unique within the cluster. */ readonly capabilityName: pulumi.Output; /** * Name of the EKS cluster. */ readonly clusterName: pulumi.Output; /** * Configuration for the capability. See `configuration` below. */ readonly configuration: pulumi.Output; /** * Delete propagation policy for the capability. Valid values: `RETAIN`. */ readonly deletePropagationPolicy: 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; /** * ARN of the IAM role to associate with the capability. */ readonly roleArn: pulumi.Output; /** * Key-value map of resource tags. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * A 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; /** * Type of the capability. Valid values: `ACK`, `KRO`, `ARGOCD`. */ readonly type: pulumi.Output; /** * Version of the capability. */ readonly version: pulumi.Output; /** * Create a Capability 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: CapabilityArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Capability resources. */ export interface CapabilityState { /** * ARN of the capability. */ arn?: pulumi.Input; /** * Name of the capability. Must be unique within the cluster. */ capabilityName?: pulumi.Input; /** * Name of the EKS cluster. */ clusterName?: pulumi.Input; /** * Configuration for the capability. See `configuration` below. */ configuration?: pulumi.Input; /** * Delete propagation policy for the capability. Valid values: `RETAIN`. */ deletePropagationPolicy?: 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; /** * ARN of the IAM role to associate with the capability. */ roleArn?: pulumi.Input; /** * Key-value map of resource tags. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * A 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; /** * Type of the capability. Valid values: `ACK`, `KRO`, `ARGOCD`. */ type?: pulumi.Input; /** * Version of the capability. */ version?: pulumi.Input; } /** * The set of arguments for constructing a Capability resource. */ export interface CapabilityArgs { /** * Name of the capability. Must be unique within the cluster. */ capabilityName: pulumi.Input; /** * Name of the EKS cluster. */ clusterName: pulumi.Input; /** * Configuration for the capability. See `configuration` below. */ configuration?: pulumi.Input; /** * Delete propagation policy for the capability. Valid values: `RETAIN`. */ deletePropagationPolicy: 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; /** * ARN of the IAM role to associate with the capability. */ roleArn: pulumi.Input; /** * Key-value map of resource tags. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; timeouts?: pulumi.Input; /** * Type of the capability. Valid values: `ACK`, `KRO`, `ARGOCD`. */ type: pulumi.Input; } //# sourceMappingURL=capability.d.ts.map