Uses of Class
software.amazon.awscdk.services.iam.PolicyStatement
Packages that use PolicyStatement
Package
Description
Continuous Integration / Continuous Delivery for CDK Applications
AWS CDK Custom Resources
CDK Pipelines
AWS Auto Scaling Construct Library
Amazon EC2 Auto Scaling Construct Library
AWS Backup Construct Library
AWS::Chatbot Construct Library
AWS CodeBuild Construct Library
AWS CodePipeline Construct Library
AWS CodePipeline Actions
Amazon EC2 Construct Library
Amazon ECR Construct Library
Amazon ECS Construct Library
Amazon EKS Construct Library
Amazon OpenSearch Service Construct Library
Event Targets for Amazon EventBridge
AWS Identity and Access Management Construct Library
Kinesis Analytics Flink
AWS Key Management Service Construct Library
AWS Lambda Construct Library
Amazon Lambda Golang Library
Amazon Lambda Node.js Library
Amazon Lambda Python Library
Amazon CloudWatch Logs Construct Library
Amazon OpenSearch Service Construct Library
Amazon S3 Construct Library
AWS Secrets Manager Construct Library
Amazon Simple Notification Service Construct Library
Amazon Simple Queue Service Construct Library
AWS Step Functions Construct Library
Tasks for AWS Step Functions
Triggers
-
Uses of PolicyStatement in software.amazon.awscdk.appdelivery
Methods in software.amazon.awscdk.appdelivery with parameters of type PolicyStatementModifier and TypeMethodDescriptionvoidPipelineDeployStackAction.addToDeploymentRolePolicy(PolicyStatement statement) Deprecated. -
Uses of PolicyStatement in software.amazon.awscdk.customresources
Methods in software.amazon.awscdk.customresources that return types with arguments of type PolicyStatementModifier and TypeMethodDescriptionAwsCustomResourcePolicy.getStatements()statements for explicit policy.Method parameters in software.amazon.awscdk.customresources with type arguments of type PolicyStatementModifier and TypeMethodDescriptionstatic AwsCustomResourcePolicyAwsCustomResourcePolicy.fromStatements(List<? extends PolicyStatement> statements) Explicit IAM Policy Statements. -
Uses of PolicyStatement in software.amazon.awscdk.pipelines
Methods in software.amazon.awscdk.pipelines that return types with arguments of type PolicyStatementModifier and TypeMethodDescriptiondefault List<PolicyStatement>CodeBuildOptions.getRolePolicy()Policy statements to add to role.final List<PolicyStatement>CodeBuildOptions.Jsii$Proxy.getRolePolicy()CodeBuildStep.getRolePolicyStatements()Policy statements to add to role used during the synth.default List<PolicyStatement>CodeBuildStepProps.getRolePolicyStatements()Policy statements to add to role used during the synth.final List<PolicyStatement>CodeBuildStepProps.Jsii$Proxy.getRolePolicyStatements()default List<PolicyStatement>ShellScriptActionProps.getRolePolicyStatements()Deprecated.final List<PolicyStatement>ShellScriptActionProps.Jsii$Proxy.getRolePolicyStatements()Deprecated.final List<PolicyStatement>SimpleSynthActionProps.Jsii$Proxy.getRolePolicyStatements()Deprecated.default List<PolicyStatement>SimpleSynthOptions.getRolePolicyStatements()Deprecated.final List<PolicyStatement>SimpleSynthOptions.Jsii$Proxy.getRolePolicyStatements()Deprecated.final List<PolicyStatement>StandardNpmSynthOptions.Jsii$Proxy.getRolePolicyStatements()Deprecated.final List<PolicyStatement>StandardYarnSynthOptions.Jsii$Proxy.getRolePolicyStatements()Deprecated.Method parameters in software.amazon.awscdk.pipelines with type arguments of type PolicyStatementModifier and TypeMethodDescriptionCodeBuildOptions.Builder.rolePolicy(List<? extends PolicyStatement> rolePolicy) Sets the value ofCodeBuildOptions.getRolePolicy()CodeBuildStep.Builder.rolePolicyStatements(List<? extends PolicyStatement> rolePolicyStatements) Policy statements to add to role used during the synth.CodeBuildStepProps.Builder.rolePolicyStatements(List<? extends PolicyStatement> rolePolicyStatements) Sets the value ofCodeBuildStepProps.getRolePolicyStatements()ShellScriptAction.Builder.rolePolicyStatements(List<? extends PolicyStatement> rolePolicyStatements) Deprecated.ShellScriptActionProps.Builder.rolePolicyStatements(List<? extends PolicyStatement> rolePolicyStatements) Deprecated.SimpleSynthAction.Builder.rolePolicyStatements(List<? extends PolicyStatement> rolePolicyStatements) Deprecated.SimpleSynthActionProps.Builder.rolePolicyStatements(List<? extends PolicyStatement> rolePolicyStatements) Deprecated.SimpleSynthOptions.Builder.rolePolicyStatements(List<? extends PolicyStatement> rolePolicyStatements) Deprecated.StandardNpmSynthOptions.Builder.rolePolicyStatements(List<? extends PolicyStatement> rolePolicyStatements) Deprecated.StandardYarnSynthOptions.Builder.rolePolicyStatements(List<? extends PolicyStatement> rolePolicyStatements) Deprecated. -
Uses of PolicyStatement in software.amazon.awscdk.services.applicationautoscaling
Methods in software.amazon.awscdk.services.applicationautoscaling with parameters of type PolicyStatementModifier and TypeMethodDescriptionvoidScalableTarget.addToRolePolicy(PolicyStatement statement) Add a policy statement to the role's policy. -
Uses of PolicyStatement in software.amazon.awscdk.services.autoscaling
Methods in software.amazon.awscdk.services.autoscaling with parameters of type PolicyStatementModifier and TypeMethodDescriptionvoidAutoScalingGroup.addToRolePolicy(PolicyStatement statement) Adds a statement to the IAM role assumed by instances of this fleet. -
Uses of PolicyStatement in software.amazon.awscdk.services.backup
Methods in software.amazon.awscdk.services.backup with parameters of type PolicyStatementModifier and TypeMethodDescriptionvoidBackupVault.addToAccessPolicy(PolicyStatement statement) Adds a statement to the vault access policy. -
Uses of PolicyStatement in software.amazon.awscdk.services.chatbot
Methods in software.amazon.awscdk.services.chatbot with parameters of type PolicyStatementModifier and TypeMethodDescriptionvoidISlackChannelConfiguration.addToRolePolicy(PolicyStatement statement) Adds a statement to the IAM role.default voidISlackChannelConfiguration.Jsii$Default.addToRolePolicy(PolicyStatement statement) Adds a statement to the IAM role.final voidISlackChannelConfiguration.Jsii$Proxy.addToRolePolicy(PolicyStatement statement) Adds a statement to the IAM role.voidSlackChannelConfiguration.addToRolePolicy(PolicyStatement statement) Adds extra permission to iam-role of Slack channel configuration. -
Uses of PolicyStatement in software.amazon.awscdk.services.cloudfront.experimental
Methods in software.amazon.awscdk.services.cloudfront.experimental that return types with arguments of type PolicyStatementModifier and TypeMethodDescriptionfinal List<PolicyStatement>EdgeFunctionProps.Jsii$Proxy.getInitialPolicy()Methods in software.amazon.awscdk.services.cloudfront.experimental with parameters of type PolicyStatementModifier and TypeMethodDescriptionvoidEdgeFunction.addToRolePolicy(PolicyStatement statement) Adds a statement to the IAM role assumed by the instance.Method parameters in software.amazon.awscdk.services.cloudfront.experimental with type arguments of type PolicyStatementModifier and TypeMethodDescriptionEdgeFunction.Builder.initialPolicy(List<? extends PolicyStatement> initialPolicy) Initial policy statements to add to the created Lambda Role.EdgeFunctionProps.Builder.initialPolicy(List<? extends PolicyStatement> initialPolicy) Sets the value ofFunctionOptions.getInitialPolicy() -
Uses of PolicyStatement in software.amazon.awscdk.services.codebuild
Methods in software.amazon.awscdk.services.codebuild that return types with arguments of type PolicyStatementModifier and TypeMethodDescriptiondefault List<PolicyStatement>UntrustedCodeBoundaryPolicyProps.getAdditionalStatements()Additional statements to add to the default set of statements.final List<PolicyStatement>UntrustedCodeBoundaryPolicyProps.Jsii$Proxy.getAdditionalStatements()Methods in software.amazon.awscdk.services.codebuild with parameters of type PolicyStatementModifier and TypeMethodDescriptionvoidIProject.addToRolePolicy(PolicyStatement policyStatement) default voidIProject.Jsii$Default.addToRolePolicy(PolicyStatement policyStatement) final voidIProject.Jsii$Proxy.addToRolePolicy(PolicyStatement policyStatement) voidProject.addToRolePolicy(PolicyStatement statement) Add a permission only if there's a policy attached.Method parameters in software.amazon.awscdk.services.codebuild with type arguments of type PolicyStatementModifier and TypeMethodDescriptionUntrustedCodeBoundaryPolicy.Builder.additionalStatements(List<? extends PolicyStatement> additionalStatements) Additional statements to add to the default set of statements.UntrustedCodeBoundaryPolicyProps.Builder.additionalStatements(List<? extends PolicyStatement> additionalStatements) Sets the value ofUntrustedCodeBoundaryPolicyProps.getAdditionalStatements() -
Uses of PolicyStatement in software.amazon.awscdk.services.codepipeline
Methods in software.amazon.awscdk.services.codepipeline with parameters of type PolicyStatementModifier and TypeMethodDescriptionvoidPipeline.addToRolePolicy(PolicyStatement statement) Adds a statement to the pipeline role. -
Uses of PolicyStatement in software.amazon.awscdk.services.codepipeline.actions
Methods in software.amazon.awscdk.services.codepipeline.actions with parameters of type PolicyStatementModifier and TypeMethodDescriptionCloudFormationCreateReplaceChangeSetAction.addToDeploymentRolePolicy(PolicyStatement statement) Add statement to the service role assumed by CloudFormation while executing this action.CloudFormationCreateUpdateStackAction.addToDeploymentRolePolicy(PolicyStatement statement) Add statement to the service role assumed by CloudFormation while executing this action.CloudFormationDeleteStackAction.addToDeploymentRolePolicy(PolicyStatement statement) Add statement to the service role assumed by CloudFormation while executing this action. -
Uses of PolicyStatement in software.amazon.awscdk.services.ec2
Methods in software.amazon.awscdk.services.ec2 with parameters of type PolicyStatementModifier and TypeMethodDescriptionvoidVpcEndpoint.addToPolicy(PolicyStatement statement) Adds a statement to the policy document of the VPC endpoint.voidInstance.addToRolePolicy(PolicyStatement statement) Adds a statement to the IAM role assumed by the instance. -
Uses of PolicyStatement in software.amazon.awscdk.services.ecr
Methods in software.amazon.awscdk.services.ecr with parameters of type PolicyStatementModifier and TypeMethodDescriptionIRepository.addToResourcePolicy(PolicyStatement statement) Add a policy statement to the repository's resource policy.default AddToResourcePolicyResultIRepository.Jsii$Default.addToResourcePolicy(PolicyStatement statement) Add a policy statement to the repository's resource policy.IRepository.Jsii$Proxy.addToResourcePolicy(PolicyStatement statement) Add a policy statement to the repository's resource policy.Repository.addToResourcePolicy(PolicyStatement statement) Add a policy statement to the repository's resource policy.abstract AddToResourcePolicyResultRepositoryBase.addToResourcePolicy(PolicyStatement statement) Add a policy statement to the repository's resource policy. -
Uses of PolicyStatement in software.amazon.awscdk.services.ecs
Methods in software.amazon.awscdk.services.ecs with parameters of type PolicyStatementModifier and TypeMethodDescriptionvoidContainerDefinition.addToExecutionPolicy(PolicyStatement statement) This method adds the specified statement to the IAM task execution policy in the task definition.voidTaskDefinition.addToExecutionRolePolicy(PolicyStatement statement) Adds a policy statement to the task execution IAM role.voidTaskDefinition.addToTaskRolePolicy(PolicyStatement statement) Adds a policy statement to the task IAM role. -
Uses of PolicyStatement in software.amazon.awscdk.services.eks
Methods in software.amazon.awscdk.services.eks with parameters of type PolicyStatementModifier and TypeMethodDescriptionServiceAccount.addToPolicy(PolicyStatement statement) Deprecated.ServiceAccount.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal. -
Uses of PolicyStatement in software.amazon.awscdk.services.elasticsearch
Methods in software.amazon.awscdk.services.elasticsearch that return types with arguments of type PolicyStatementModifier and TypeMethodDescriptiondefault List<PolicyStatement>DomainProps.getAccessPolicies()Deprecated.use opensearchservice module insteadfinal List<PolicyStatement>DomainProps.Jsii$Proxy.getAccessPolicies()Deprecated.Methods in software.amazon.awscdk.services.elasticsearch with parameters of type PolicyStatementModifier and TypeMethodDescriptionvoidDomain.addAccessPolicies(@NotNull PolicyStatement... accessPolicyStatements) Deprecated.use opensearchservice module insteadMethod parameters in software.amazon.awscdk.services.elasticsearch with type arguments of type PolicyStatementModifier and TypeMethodDescriptionDomain.Builder.accessPolicies(List<? extends PolicyStatement> accessPolicies) Deprecated.use opensearchservice module insteadDomainProps.Builder.accessPolicies(List<? extends PolicyStatement> accessPolicies) Deprecated.use opensearchservice module instead -
Uses of PolicyStatement in software.amazon.awscdk.services.events.targets
Methods in software.amazon.awscdk.services.events.targets that return PolicyStatementModifier and TypeMethodDescriptiondefault PolicyStatementAwsApiProps.getPolicyStatement()The IAM policy statement to allow the API call.final PolicyStatementAwsApiProps.Jsii$Proxy.getPolicyStatement()Methods in software.amazon.awscdk.services.events.targets with parameters of type PolicyStatementModifier and TypeMethodDescriptionAwsApi.Builder.policyStatement(PolicyStatement policyStatement) The IAM policy statement to allow the API call.AwsApiProps.Builder.policyStatement(PolicyStatement policyStatement) Sets the value ofAwsApiProps.getPolicyStatement() -
Uses of PolicyStatement in software.amazon.awscdk.services.iam
Methods in software.amazon.awscdk.services.iam that return PolicyStatementModifier and TypeMethodDescriptionPolicyStatement.Builder.build()PolicyStatement.copy()Create a newPolicyStatementwith the same exact properties as this one, except for the overrides.PolicyStatement.copy(PolicyStatementProps overrides) Create a newPolicyStatementwith the same exact properties as this one, except for the overrides.static PolicyStatementCreates a new PolicyStatement based on the object provided.Grant.getPrincipalStatement()The statement that was added to the principal's policy.Grant.getResourceStatement()The statement that was added to the resource policy.Methods in software.amazon.awscdk.services.iam that return types with arguments of type PolicyStatementModifier and TypeMethodDescriptiondefault List<PolicyStatement>ManagedPolicyProps.getStatements()Initial set of permissions to add to this policy document.final List<PolicyStatement>ManagedPolicyProps.Jsii$Proxy.getStatements()default List<PolicyStatement>PolicyDocumentProps.getStatements()Initial statements to add to the policy document.final List<PolicyStatement>PolicyDocumentProps.Jsii$Proxy.getStatements()default List<PolicyStatement>PolicyProps.getStatements()Initial set of permissions to add to this policy document.final List<PolicyStatement>PolicyProps.Jsii$Proxy.getStatements()Methods in software.amazon.awscdk.services.iam with parameters of type PolicyStatementModifier and TypeMethodDescriptionvoidManagedPolicy.addStatements(@NotNull PolicyStatement... statement) Adds a statement to the policy document.voidPolicy.addStatements(@NotNull PolicyStatement... statement) Adds a statement to the policy document.voidPolicyDocument.addStatements(@NotNull PolicyStatement... statement) Adds a statement to the policy document.Group.addToPolicy(PolicyStatement statement) Add to the policy of this principal.default BooleanIAssumeRolePrincipal.Jsii$Default.addToPolicy(PolicyStatement statement) Deprecated.UseaddToPrincipalPolicyinstead.final BooleanIAssumeRolePrincipal.Jsii$Proxy.addToPolicy(PolicyStatement statement) Deprecated.UseaddToPrincipalPolicyinstead.default BooleanIComparablePrincipal.Jsii$Default.addToPolicy(PolicyStatement statement) Deprecated.UseaddToPrincipalPolicyinstead.final BooleanIComparablePrincipal.Jsii$Proxy.addToPolicy(PolicyStatement statement) Deprecated.UseaddToPrincipalPolicyinstead.default BooleanIGroup.Jsii$Default.addToPolicy(PolicyStatement statement) Deprecated.UseaddToPrincipalPolicyinstead.final BooleanIGroup.Jsii$Proxy.addToPolicy(PolicyStatement statement) Deprecated.UseaddToPrincipalPolicyinstead.default BooleanIIdentity.Jsii$Default.addToPolicy(PolicyStatement statement) Deprecated.UseaddToPrincipalPolicyinstead.final BooleanIIdentity.Jsii$Proxy.addToPolicy(PolicyStatement statement) Deprecated.UseaddToPrincipalPolicyinstead.IPrincipal.addToPolicy(PolicyStatement statement) Deprecated.UseaddToPrincipalPolicyinstead.default BooleanIPrincipal.Jsii$Default.addToPolicy(PolicyStatement statement) Deprecated.UseaddToPrincipalPolicyinstead.final BooleanIPrincipal.Jsii$Proxy.addToPolicy(PolicyStatement statement) Deprecated.UseaddToPrincipalPolicyinstead.default BooleanIRole.Jsii$Default.addToPolicy(PolicyStatement statement) Deprecated.UseaddToPrincipalPolicyinstead.final BooleanIRole.Jsii$Proxy.addToPolicy(PolicyStatement statement) Deprecated.UseaddToPrincipalPolicyinstead.default BooleanIUser.Jsii$Default.addToPolicy(PolicyStatement statement) Deprecated.UseaddToPrincipalPolicyinstead.final BooleanIUser.Jsii$Proxy.addToPolicy(PolicyStatement statement) Deprecated.UseaddToPrincipalPolicyinstead.LazyRole.addToPolicy(PolicyStatement statement) Add to the policy of this principal.PrincipalBase.addToPolicy(PolicyStatement statement) Add to the policy of this principal.PrincipalWithConditions.addToPolicy(PolicyStatement statement) Add to the policy of this principal.Role.addToPolicy(PolicyStatement statement) Add to the policy of this principal.SessionTagsPrincipal.addToPolicy(PolicyStatement statement) Add to the policy of this principal.UnknownPrincipal.addToPolicy(PolicyStatement statement) Add to the policy of this principal.User.addToPolicy(PolicyStatement statement) Add to the policy of this principal.Group.addToPrincipalPolicy(PolicyStatement statement) Adds an IAM statement to the default policy.default AddToPrincipalPolicyResultIAssumeRolePrincipal.Jsii$Default.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.IAssumeRolePrincipal.Jsii$Proxy.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.default AddToPrincipalPolicyResultIComparablePrincipal.Jsii$Default.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.IComparablePrincipal.Jsii$Proxy.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.default AddToPrincipalPolicyResultIGroup.Jsii$Default.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.IGroup.Jsii$Proxy.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.default AddToPrincipalPolicyResultIIdentity.Jsii$Default.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.IIdentity.Jsii$Proxy.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.IPrincipal.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.default AddToPrincipalPolicyResultIPrincipal.Jsii$Default.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.IPrincipal.Jsii$Proxy.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.default AddToPrincipalPolicyResultIRole.Jsii$Default.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.IRole.Jsii$Proxy.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.default AddToPrincipalPolicyResultIUser.Jsii$Default.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.IUser.Jsii$Proxy.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.LazyRole.addToPrincipalPolicy(PolicyStatement statement) Adds a permission to the role's default policy document.PrincipalBase.addToPrincipalPolicy(PolicyStatement _statement) Add to the policy of this principal.PrincipalWithConditions.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.Role.addToPrincipalPolicy(PolicyStatement statement) Adds a permission to the role's default policy document.SessionTagsPrincipal.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.UnknownPrincipal.addToPrincipalPolicy(PolicyStatement statement) Add to the policy of this principal.User.addToPrincipalPolicy(PolicyStatement statement) Adds an IAM statement to the default policy.IResourceWithPolicy.addToResourcePolicy(PolicyStatement statement) Add a statement to the resource's resource policy.default AddToResourcePolicyResultIResourceWithPolicy.Jsii$Default.addToResourcePolicy(PolicyStatement statement) Add a statement to the resource's resource policy.IResourceWithPolicy.Jsii$Proxy.addToResourcePolicy(PolicyStatement statement) Add a statement to the resource's resource policy.Method parameters in software.amazon.awscdk.services.iam with type arguments of type PolicyStatementModifier and TypeMethodDescriptionManagedPolicy.Builder.statements(List<? extends PolicyStatement> statements) Initial set of permissions to add to this policy document.ManagedPolicyProps.Builder.statements(List<? extends PolicyStatement> statements) Sets the value ofManagedPolicyProps.getStatements()Policy.Builder.statements(List<? extends PolicyStatement> statements) Initial set of permissions to add to this policy document.PolicyDocument.Builder.statements(List<? extends PolicyStatement> statements) Initial statements to add to the policy document.PolicyDocumentProps.Builder.statements(List<? extends PolicyStatement> statements) Sets the value ofPolicyDocumentProps.getStatements()PolicyProps.Builder.statements(List<? extends PolicyStatement> statements) Sets the value ofPolicyProps.getStatements() -
Uses of PolicyStatement in software.amazon.awscdk.services.kinesis.analytics.flink
Methods in software.amazon.awscdk.services.kinesis.analytics.flink with parameters of type PolicyStatementModifier and TypeMethodDescriptionApplication.addToRolePolicy(PolicyStatement policyStatement) (experimental) Implement the convenienceIApplication.addToPrincipalPolicymethod.IApplication.addToRolePolicy(PolicyStatement policyStatement) (experimental) Convenience method for adding a policy statement to the application role.default BooleanIApplication.Jsii$Default.addToRolePolicy(PolicyStatement policyStatement) (experimental) Convenience method for adding a policy statement to the application role.final BooleanIApplication.Jsii$Proxy.addToRolePolicy(PolicyStatement policyStatement) (experimental) Convenience method for adding a policy statement to the application role. -
Uses of PolicyStatement in software.amazon.awscdk.services.kms
Methods in software.amazon.awscdk.services.kms with parameters of type PolicyStatementModifier and TypeMethodDescriptionAlias.addToResourcePolicy(PolicyStatement statement) Adds a statement to the KMS key resource policy.Alias.addToResourcePolicy(PolicyStatement statement, Boolean allowNoOp) Adds a statement to the KMS key resource policy.default AddToResourcePolicyResultIAlias.Jsii$Default.addToResourcePolicy(PolicyStatement statement, Boolean allowNoOp) Adds a statement to the KMS key resource policy.IAlias.Jsii$Proxy.addToResourcePolicy(PolicyStatement statement) Adds a statement to the KMS key resource policy.IAlias.Jsii$Proxy.addToResourcePolicy(PolicyStatement statement, Boolean allowNoOp) Adds a statement to the KMS key resource policy.IKey.addToResourcePolicy(PolicyStatement statement) Adds a statement to the KMS key resource policy.IKey.addToResourcePolicy(PolicyStatement statement, Boolean allowNoOp) Adds a statement to the KMS key resource policy.default AddToResourcePolicyResultIKey.Jsii$Default.addToResourcePolicy(PolicyStatement statement, Boolean allowNoOp) Adds a statement to the KMS key resource policy.IKey.Jsii$Proxy.addToResourcePolicy(PolicyStatement statement) Adds a statement to the KMS key resource policy.IKey.Jsii$Proxy.addToResourcePolicy(PolicyStatement statement, Boolean allowNoOp) Adds a statement to the KMS key resource policy.Key.addToResourcePolicy(PolicyStatement statement) Adds a statement to the KMS key resource policy.Key.addToResourcePolicy(PolicyStatement statement, Boolean allowNoOp) Adds a statement to the KMS key resource policy. -
Uses of PolicyStatement in software.amazon.awscdk.services.lambda
Methods in software.amazon.awscdk.services.lambda that return types with arguments of type PolicyStatementModifier and TypeMethodDescriptionfinal List<PolicyStatement>DockerImageFunctionProps.Jsii$Proxy.getInitialPolicy()default List<PolicyStatement>FunctionOptions.getInitialPolicy()Initial policy statements to add to the created Lambda Role.final List<PolicyStatement>FunctionOptions.Jsii$Proxy.getInitialPolicy()final List<PolicyStatement>FunctionProps.Jsii$Proxy.getInitialPolicy()final List<PolicyStatement>SingletonFunctionProps.Jsii$Proxy.getInitialPolicy()default List<PolicyStatement>FileSystemConfig.getPolicies()additional IAM policies required for the lambda function.final List<PolicyStatement>FileSystemConfig.Jsii$Proxy.getPolicies()Methods in software.amazon.awscdk.services.lambda with parameters of type PolicyStatementModifier and TypeMethodDescriptionvoidFunctionBase.addToRolePolicy(PolicyStatement statement) Adds a statement to the IAM role assumed by the instance.default voidIAlias.Jsii$Default.addToRolePolicy(PolicyStatement statement) Adds a statement to the IAM role assumed by the instance.final voidIAlias.Jsii$Proxy.addToRolePolicy(PolicyStatement statement) Adds a statement to the IAM role assumed by the instance.voidIFunction.addToRolePolicy(PolicyStatement statement) Adds a statement to the IAM role assumed by the instance.default voidIFunction.Jsii$Default.addToRolePolicy(PolicyStatement statement) Adds a statement to the IAM role assumed by the instance.final voidIFunction.Jsii$Proxy.addToRolePolicy(PolicyStatement statement) Adds a statement to the IAM role assumed by the instance.default voidIVersion.Jsii$Default.addToRolePolicy(PolicyStatement statement) Adds a statement to the IAM role assumed by the instance.final voidIVersion.Jsii$Proxy.addToRolePolicy(PolicyStatement statement) Adds a statement to the IAM role assumed by the instance.Method parameters in software.amazon.awscdk.services.lambda with type arguments of type PolicyStatementModifier and TypeMethodDescriptionDockerImageFunction.Builder.initialPolicy(List<? extends PolicyStatement> initialPolicy) Initial policy statements to add to the created Lambda Role.DockerImageFunctionProps.Builder.initialPolicy(List<? extends PolicyStatement> initialPolicy) Sets the value ofFunctionOptions.getInitialPolicy()Function.Builder.initialPolicy(List<? extends PolicyStatement> initialPolicy) Initial policy statements to add to the created Lambda Role.FunctionOptions.Builder.initialPolicy(List<? extends PolicyStatement> initialPolicy) Sets the value ofFunctionOptions.getInitialPolicy()FunctionProps.Builder.initialPolicy(List<? extends PolicyStatement> initialPolicy) Sets the value ofFunctionOptions.getInitialPolicy()SingletonFunction.Builder.initialPolicy(List<? extends PolicyStatement> initialPolicy) Initial policy statements to add to the created Lambda Role.SingletonFunctionProps.Builder.initialPolicy(List<? extends PolicyStatement> initialPolicy) Sets the value ofFunctionOptions.getInitialPolicy()FileSystemConfig.Builder.policies(List<? extends PolicyStatement> policies) Sets the value ofFileSystemConfig.getPolicies() -
Uses of PolicyStatement in software.amazon.awscdk.services.lambda.go
Methods in software.amazon.awscdk.services.lambda.go that return types with arguments of type PolicyStatementModifier and TypeMethodDescriptionfinal List<PolicyStatement>GoFunctionProps.Jsii$Proxy.getInitialPolicy()Method parameters in software.amazon.awscdk.services.lambda.go with type arguments of type PolicyStatementModifier and TypeMethodDescriptionGoFunction.Builder.initialPolicy(List<? extends PolicyStatement> initialPolicy) Initial policy statements to add to the created Lambda Role.GoFunctionProps.Builder.initialPolicy(List<? extends PolicyStatement> initialPolicy) Sets the value ofFunctionOptions.getInitialPolicy() -
Uses of PolicyStatement in software.amazon.awscdk.services.lambda.nodejs
Methods in software.amazon.awscdk.services.lambda.nodejs that return types with arguments of type PolicyStatementModifier and TypeMethodDescriptionfinal List<PolicyStatement>NodejsFunctionProps.Jsii$Proxy.getInitialPolicy()Method parameters in software.amazon.awscdk.services.lambda.nodejs with type arguments of type PolicyStatementModifier and TypeMethodDescriptionNodejsFunction.Builder.initialPolicy(List<? extends PolicyStatement> initialPolicy) Initial policy statements to add to the created Lambda Role.NodejsFunctionProps.Builder.initialPolicy(List<? extends PolicyStatement> initialPolicy) Sets the value ofFunctionOptions.getInitialPolicy() -
Uses of PolicyStatement in software.amazon.awscdk.services.lambda.python
Methods in software.amazon.awscdk.services.lambda.python that return types with arguments of type PolicyStatementModifier and TypeMethodDescriptionfinal List<PolicyStatement>PythonFunctionProps.Jsii$Proxy.getInitialPolicy()Method parameters in software.amazon.awscdk.services.lambda.python with type arguments of type PolicyStatementModifier and TypeMethodDescriptionPythonFunction.Builder.initialPolicy(List<? extends PolicyStatement> initialPolicy) Initial policy statements to add to the created Lambda Role.PythonFunctionProps.Builder.initialPolicy(List<? extends PolicyStatement> initialPolicy) Sets the value ofFunctionOptions.getInitialPolicy() -
Uses of PolicyStatement in software.amazon.awscdk.services.logs
Methods in software.amazon.awscdk.services.logs that return types with arguments of type PolicyStatementModifier and TypeMethodDescriptiondefault List<PolicyStatement>ResourcePolicyProps.getPolicyStatements()Initial statements to add to the resource policy.final List<PolicyStatement>ResourcePolicyProps.Jsii$Proxy.getPolicyStatements()Methods in software.amazon.awscdk.services.logs with parameters of type PolicyStatementModifier and TypeMethodDescriptionvoidCrossAccountDestination.addToPolicy(PolicyStatement statement) default AddToResourcePolicyResultILogGroup.Jsii$Default.addToResourcePolicy(PolicyStatement statement) Add a statement to the resource's resource policy.ILogGroup.Jsii$Proxy.addToResourcePolicy(PolicyStatement statement) Add a statement to the resource's resource policy.LogGroup.addToResourcePolicy(PolicyStatement statement) Adds a statement to the resource policy associated with this log group.Method parameters in software.amazon.awscdk.services.logs with type arguments of type PolicyStatementModifier and TypeMethodDescriptionResourcePolicy.Builder.policyStatements(List<? extends PolicyStatement> policyStatements) Initial statements to add to the resource policy.ResourcePolicyProps.Builder.policyStatements(List<? extends PolicyStatement> policyStatements) Sets the value ofResourcePolicyProps.getPolicyStatements() -
Uses of PolicyStatement in software.amazon.awscdk.services.opensearchservice
Methods in software.amazon.awscdk.services.opensearchservice that return types with arguments of type PolicyStatementModifier and TypeMethodDescriptiondefault List<PolicyStatement>DomainProps.getAccessPolicies()Domain access policies.final List<PolicyStatement>DomainProps.Jsii$Proxy.getAccessPolicies()Methods in software.amazon.awscdk.services.opensearchservice with parameters of type PolicyStatementModifier and TypeMethodDescriptionvoidDomain.addAccessPolicies(@NotNull PolicyStatement... accessPolicyStatements) Add policy statements to the domain access policy.Method parameters in software.amazon.awscdk.services.opensearchservice with type arguments of type PolicyStatementModifier and TypeMethodDescriptionDomain.Builder.accessPolicies(List<? extends PolicyStatement> accessPolicies) Domain access policies.DomainProps.Builder.accessPolicies(List<? extends PolicyStatement> accessPolicies) Sets the value ofDomainProps.getAccessPolicies() -
Uses of PolicyStatement in software.amazon.awscdk.services.s3
Methods in software.amazon.awscdk.services.s3 with parameters of type PolicyStatementModifier and TypeMethodDescriptionBucketBase.addToResourcePolicy(PolicyStatement permission) Adds a statement to the resource policy for a principal (i.e.IBucket.addToResourcePolicy(PolicyStatement permission) Adds a statement to the resource policy for a principal (i.e.default AddToResourcePolicyResultIBucket.Jsii$Default.addToResourcePolicy(PolicyStatement permission) Adds a statement to the resource policy for a principal (i.e.IBucket.Jsii$Proxy.addToResourcePolicy(PolicyStatement permission) Adds a statement to the resource policy for a principal (i.e. -
Uses of PolicyStatement in software.amazon.awscdk.services.secretsmanager
Methods in software.amazon.awscdk.services.secretsmanager with parameters of type PolicyStatementModifier and TypeMethodDescriptionISecret.addToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this secret.default AddToResourcePolicyResultISecret.Jsii$Default.addToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this secret.ISecret.Jsii$Proxy.addToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this secret.default AddToResourcePolicyResultISecretTargetAttachment.Jsii$Default.addToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this secret.ISecretTargetAttachment.Jsii$Proxy.addToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this secret.Secret.addToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this secret.SecretTargetAttachment.addToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this secret. -
Uses of PolicyStatement in software.amazon.awscdk.services.sns
Methods in software.amazon.awscdk.services.sns with parameters of type PolicyStatementModifier and TypeMethodDescriptionITopic.addToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this topic.default AddToResourcePolicyResultITopic.Jsii$Default.addToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this topic.ITopic.Jsii$Proxy.addToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this topic.TopicBase.addToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this topic. -
Uses of PolicyStatement in software.amazon.awscdk.services.sqs
Methods in software.amazon.awscdk.services.sqs with parameters of type PolicyStatementModifier and TypeMethodDescriptionIQueue.addToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this queue.default AddToResourcePolicyResultIQueue.Jsii$Default.addToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this queue.IQueue.Jsii$Proxy.addToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this queue.QueueBase.addToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this queue. -
Uses of PolicyStatement in software.amazon.awscdk.services.stepfunctions
Methods in software.amazon.awscdk.services.stepfunctions that return types with arguments of type PolicyStatementModifier and TypeMethodDescriptionStateGraph.getPolicyStatements()The accumulated policy statements.default List<PolicyStatement>StepFunctionsTaskConfig.getPolicyStatements()Deprecated.final List<PolicyStatement>StepFunctionsTaskConfig.Jsii$Proxy.getPolicyStatements()Deprecated.protected abstract List<PolicyStatement>TaskStateBase.getTaskPolicies()Methods in software.amazon.awscdk.services.stepfunctions with parameters of type PolicyStatementModifier and TypeMethodDescriptionvoidStateMachine.addToRolePolicy(PolicyStatement statement) Add the given statement to the role's policy.voidStateGraph.registerPolicyStatement(PolicyStatement statement) Register a Policy Statement used by states in this graph.Method parameters in software.amazon.awscdk.services.stepfunctions with type arguments of type PolicyStatementModifier and TypeMethodDescriptionStepFunctionsTaskConfig.Builder.policyStatements(List<? extends PolicyStatement> policyStatements) Deprecated. -
Uses of PolicyStatement in software.amazon.awscdk.services.stepfunctions.tasks
Methods in software.amazon.awscdk.services.stepfunctions.tasks that return types with arguments of type PolicyStatementModifier and TypeMethodDescriptionprotected List<PolicyStatement>CallApiGatewayHttpApiEndpoint.createPolicyStatements()protected List<PolicyStatement>CallApiGatewayRestApiEndpoint.createPolicyStatements()protected List<PolicyStatement>AthenaGetQueryExecution.getTaskPolicies()protected List<PolicyStatement>AthenaGetQueryResults.getTaskPolicies()protected List<PolicyStatement>AthenaStartQueryExecution.getTaskPolicies()protected List<PolicyStatement>AthenaStopQueryExecution.getTaskPolicies()protected List<PolicyStatement>BatchSubmitJob.getTaskPolicies()protected List<PolicyStatement>CallApiGatewayHttpApiEndpoint.getTaskPolicies()protected List<PolicyStatement>CallApiGatewayRestApiEndpoint.getTaskPolicies()protected List<PolicyStatement>CallAwsService.getTaskPolicies()protected List<PolicyStatement>CodeBuildStartBuild.getTaskPolicies()protected List<PolicyStatement>DynamoDeleteItem.getTaskPolicies()protected List<PolicyStatement>DynamoGetItem.getTaskPolicies()protected List<PolicyStatement>DynamoPutItem.getTaskPolicies()protected List<PolicyStatement>DynamoUpdateItem.getTaskPolicies()protected List<PolicyStatement>EcsRunTask.getTaskPolicies()protected List<PolicyStatement>EksCall.getTaskPolicies()protected List<PolicyStatement>EmrAddStep.getTaskPolicies()protected List<PolicyStatement>EmrCancelStep.getTaskPolicies()protected List<PolicyStatement>EmrContainersCreateVirtualCluster.getTaskPolicies()protected List<PolicyStatement>EmrContainersDeleteVirtualCluster.getTaskPolicies()protected List<PolicyStatement>EmrContainersStartJobRun.getTaskPolicies()protected List<PolicyStatement>EmrCreateCluster.getTaskPolicies()protected List<PolicyStatement>EmrModifyInstanceFleetByName.getTaskPolicies()protected List<PolicyStatement>EmrModifyInstanceGroupByName.getTaskPolicies()protected List<PolicyStatement>EmrSetClusterTerminationProtection.getTaskPolicies()protected List<PolicyStatement>EmrTerminateCluster.getTaskPolicies()protected List<PolicyStatement>EvaluateExpression.getTaskPolicies()protected List<PolicyStatement>EventBridgePutEvents.getTaskPolicies()protected List<PolicyStatement>GlueDataBrewStartJobRun.getTaskPolicies()protected List<PolicyStatement>GlueStartJobRun.getTaskPolicies()protected List<PolicyStatement>LambdaInvoke.getTaskPolicies()protected List<PolicyStatement>SageMakerCreateEndpoint.getTaskPolicies()protected List<PolicyStatement>SageMakerCreateEndpointConfig.getTaskPolicies()protected List<PolicyStatement>SageMakerCreateModel.getTaskPolicies()protected List<PolicyStatement>SageMakerCreateTrainingJob.getTaskPolicies()protected List<PolicyStatement>SageMakerCreateTransformJob.getTaskPolicies()protected List<PolicyStatement>SageMakerUpdateEndpoint.getTaskPolicies()protected List<PolicyStatement>SnsPublish.getTaskPolicies()protected List<PolicyStatement>SqsSendMessage.getTaskPolicies()protected List<PolicyStatement>StepFunctionsInvokeActivity.getTaskPolicies()protected List<PolicyStatement>StepFunctionsStartExecution.getTaskPolicies() -
Uses of PolicyStatement in software.amazon.awscdk.triggers
Methods in software.amazon.awscdk.triggers that return types with arguments of type PolicyStatementModifier and TypeMethodDescriptionfinal List<PolicyStatement>TriggerFunctionProps.Jsii$Proxy.getInitialPolicy()Method parameters in software.amazon.awscdk.triggers with type arguments of type PolicyStatementModifier and TypeMethodDescriptionTriggerFunction.Builder.initialPolicy(List<? extends PolicyStatement> initialPolicy) Initial policy statements to add to the created Lambda Role.TriggerFunctionProps.Builder.initialPolicy(List<? extends PolicyStatement> initialPolicy) Sets the value ofFunctionOptions.getInitialPolicy()
addToPrincipalPolicy()