@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:56.563Z") @Stability(value=Experimental) public class UntrustedCodeBoundaryPolicy extends ManagedPolicy
This class is a Policy, intended to be used as a Permissions Boundary for a CodeBuild project. It allows most of the actions necessary to run the CodeBuild project, but disallows reading from Parameter Store and Secrets Manager.
Use this when your CodeBuild project is running untrusted code (for example, if you are using one to automatically build Pull Requests that anyone can submit), and you want to prevent your future self from accidentally exposing Secrets to this build.
(The reason you might want to do this is because otherwise anyone who can submit a Pull Request to your project can write a script to email those secrets to themselves).
Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 iam.PermissionsBoundary.of(project).apply(new UntrustedCodeBoundaryPolicy(this, "Boundary"));
| Modifier and Type | Class and Description |
|---|---|
static class |
UntrustedCodeBoundaryPolicy.Builder
(experimental) A fluent builder for
UntrustedCodeBoundaryPolicy. |
software.amazon.jsii.JsiiObject.InitializationModeIManagedPolicy.Jsii$Default, IManagedPolicy.Jsii$ProxyIResource.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
UntrustedCodeBoundaryPolicy(software.constructs.Construct scope,
String id) |
|
UntrustedCodeBoundaryPolicy(software.constructs.Construct scope,
String id,
UntrustedCodeBoundaryPolicyProps props) |
protected |
UntrustedCodeBoundaryPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
UntrustedCodeBoundaryPolicy(software.amazon.jsii.JsiiObjectRef objRef) |
addStatements, attachToGroup, attachToRole, attachToUser, fromAwsManagedPolicyName, fromManagedPolicyArn, fromManagedPolicyName, getDescription, getDocument, getManagedPolicyArn, getManagedPolicyName, getPathapplyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected UntrustedCodeBoundaryPolicy(software.amazon.jsii.JsiiObjectRef objRef)
protected UntrustedCodeBoundaryPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public UntrustedCodeBoundaryPolicy(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
UntrustedCodeBoundaryPolicyProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public UntrustedCodeBoundaryPolicy(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.Copyright © 2021. All rights reserved.