@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:18.599Z") @Stability(value=Experimental) public class ServiceAccount extends software.constructs.Construct implements IPrincipal
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceAccount.Builder
(experimental) A fluent builder for
ServiceAccount. |
software.amazon.jsii.JsiiObject.InitializationModeIPrincipal.Jsii$Default, IPrincipal.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
ServiceAccount(software.constructs.Construct scope,
String id,
ServiceAccountProps props) |
protected |
ServiceAccount(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ServiceAccount(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
AddToPrincipalPolicyResult |
addToPrincipalPolicy(PolicyStatement statement)
(experimental) Add to the policy of this principal.
|
String |
getAssumeRoleAction()
(experimental) When this Principal is used in an AssumeRole policy, the action to use.
|
IPrincipal |
getGrantPrincipal()
(experimental) The principal to grant permissions to.
|
PrincipalPolicyFragment |
getPolicyFragment()
(experimental) Return the policy fragment that identifies this principal in a Policy.
|
IRole |
getRole()
(experimental) The role which is linked to the service account.
|
String |
getServiceAccountName()
(experimental) The name of the service account.
|
String |
getServiceAccountNamespace()
(experimental) The namespace where the service account is located in.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetPrincipalAccountprotected ServiceAccount(software.amazon.jsii.JsiiObjectRef objRef)
protected ServiceAccount(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public ServiceAccount(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
ServiceAccountProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public AddToPrincipalPolicyResult addToPrincipalPolicy(@NotNull PolicyStatement statement)
addToPrincipalPolicy in interface IPrincipalstatement - This parameter is required.@Stability(value=Experimental) @NotNull public String getAssumeRoleAction()
getAssumeRoleAction in interface IPrincipal@Stability(value=Experimental) @NotNull public IPrincipal getGrantPrincipal()
getGrantPrincipal in interface IGrantable@Stability(value=Experimental) @NotNull public PrincipalPolicyFragment getPolicyFragment()
getPolicyFragment in interface IPrincipal@Stability(value=Experimental) @NotNull public IRole getRole()
@Stability(value=Experimental) @NotNull public String getServiceAccountName()
@Stability(value=Experimental) @NotNull public String getServiceAccountNamespace()
Copyright © 2021. All rights reserved.