Class CfnPodIdentityAssociation

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:34:01.672Z") @Stability(Stable) public class CfnPodIdentityAssociation extends CfnResource implements IInspectable, ITaggableV2
Amazon EKS Pod Identity associations provide the ability to manage credentials for your applications, similar to the way that Amazon EC2 instance profiles provide credentials to Amazon EC2 instances.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.eks.*;
 CfnPodIdentityAssociation cfnPodIdentityAssociation = CfnPodIdentityAssociation.Builder.create(this, "MyCfnPodIdentityAssociation")
         .clusterName("clusterName")
         .namespace("namespace")
         .roleArn("roleArn")
         .serviceAccount("serviceAccount")
         // the properties below are optional
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnPodIdentityAssociation

      protected CfnPodIdentityAssociation(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnPodIdentityAssociation

      protected CfnPodIdentityAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnPodIdentityAssociation

      @Stability(Stable) public CfnPodIdentityAssociation(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPodIdentityAssociationProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrAssociationArn

      @Stability(Stable) @NotNull public String getAttrAssociationArn()
      The Amazon Resource Name (ARN) of the association.
    • getAttrAssociationId

      @Stability(Stable) @NotNull public String getAttrAssociationId()
      The ID of the association.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getClusterName

      @Stability(Stable) @NotNull public String getClusterName()
      The name of the cluster that the association is in.
    • setClusterName

      @Stability(Stable) public void setClusterName(@NotNull String value)
      The name of the cluster that the association is in.
    • getNamespace

      @Stability(Stable) @NotNull public String getNamespace()
      The name of the Kubernetes namespace inside the cluster to create the association in.
    • setNamespace

      @Stability(Stable) public void setNamespace(@NotNull String value)
      The name of the Kubernetes namespace inside the cluster to create the association in.
    • getRoleArn

      @Stability(Stable) @NotNull public String getRoleArn()
      The Amazon Resource Name (ARN) of the IAM role to associate with the service account.
    • setRoleArn

      @Stability(Stable) public void setRoleArn(@NotNull String value)
      The Amazon Resource Name (ARN) of the IAM role to associate with the service account.
    • getServiceAccount

      @Stability(Stable) @NotNull public String getServiceAccount()
      The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.
    • setServiceAccount

      @Stability(Stable) public void setServiceAccount(@NotNull String value)
      The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      Metadata that assists with categorization and organization.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      Metadata that assists with categorization and organization.