@aws-quickstart/eks-blueprints
    Preparing search index...

    Class AckRoleSelectorBuilder

    Builder for constructing ACK IAMRoleSelector resources. Accepts either an existing role ARN or a policy to create a new role.

    // Let the capability create the role with a managed policy
    new AckRoleSelectorBuilder("s3-prod")
    .withManagedPolicy("AmazonS3FullAccess")
    .namespaces("production")
    .build()

    // Use an existing role ARN
    new AckRoleSelectorBuilder("rds-prod")
    .withRoleArn("arn:aws:iam::123:role/MyExistingRole")
    .namespaces("rds-resources")
    .build()

    // Use a custom inline policy
    new AckRoleSelectorBuilder("s3-readonly")
    .withPolicyDocument(new iam.PolicyDocument({
    statements: [new iam.PolicyStatement({
    actions: ["s3:Get*", "s3:List*"],
    resources: ["*"],
    })],
    }))
    .namespaces("s3-readonly")
    .build()
    Index
    managedPolicyName?: string
    name: string
    namespaceLabelSelector?: Record<string, string>
    namespaceNames?: string[]
    policyDocument?: PolicyDocument
    resourceTypeSelector?: AckResourceTypeSelector[]
    roleArn?: string
    • Scope to namespaces matching labels

      Parameters

      • labels: Record<string, string>

      Returns this