ServiceAccount¶
-
class
aws_cdk.aws_eks.
ServiceAccount
(scope, id, *, cluster, name=None, namespace=None)¶ Bases:
aws_cdk.core.Construct
(experimental) Service Account.
- Stability
experimental
- Parameters
scope (
Construct
) –id (
str
) –cluster (
ICluster
) – (experimental) The cluster to apply the patch to.name (
Optional
[str
]) – (experimental) The name of the service account. Default: - If no name is given, it will use the id of the resource.namespace (
Optional
[str
]) – (experimental) The namespace of the service account. Default: “default”
- Stability
experimental
Methods
-
add_to_policy
(statement)¶ (experimental) (deprecated) Add to the policy of this principal.
- Parameters
statement (
PolicyStatement
) –- Stability
experimental
- Return type
bool
-
add_to_principal_policy
(statement)¶ (experimental) Add to the policy of this principal.
- Parameters
statement (
PolicyStatement
) –- Stability
experimental
- Return type
-
to_string
()¶ Returns a string representation of this construct.
- Return type
str
Attributes
-
assume_role_action
¶ (experimental) When this Principal is used in an AssumeRole policy, the action to use.
- Stability
experimental
- Return type
str
-
grant_principal
¶ (experimental) The principal to grant permissions to.
- Stability
experimental
- Return type
-
node
¶ The construct tree node associated with this construct.
- Return type
-
policy_fragment
¶ (experimental) Return the policy fragment that identifies this principal in a Policy.
- Stability
experimental
- Return type
-
role
¶ (experimental) The role which is linked to the service account.
- Stability
experimental
- Return type
-
service_account_name
¶ (experimental) The name of the service account.
- Stability
experimental
- Return type
str
-
service_account_namespace
¶ (experimental) The namespace where the service account is located in.
- Stability
experimental
- Return type
str
Static Methods
-
classmethod
is_construct
(x)¶ Return whether the given object is a Construct.
- Parameters
x (
Any
) –- Return type
bool