Skip to content
v2.277.0

UntrustedCodeBoundaryPolicyProps Struct ​

Construction properties for UntrustedCodeBoundaryPolicy.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codebuild as codebuild } from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';

declare const policyStatement: iam.PolicyStatement;
const untrustedCodeBoundaryPolicyProps: codebuild.UntrustedCodeBoundaryPolicyProps = {
  additionalStatements: [policyStatement],
  managedPolicyName: 'managedPolicyName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_codebuild as codebuild
from aws_cdk import aws_iam as iam

# policy_statement: iam.PolicyStatement

untrusted_code_boundary_policy_props = codebuild.UntrustedCodeBoundaryPolicyProps(
    additional_statements=[policy_statement],
    managed_policy_name="managedPolicyName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codebuild.*;
import software.amazon.awscdk.services.iam.*;

PolicyStatement policyStatement;

UntrustedCodeBoundaryPolicyProps untrustedCodeBoundaryPolicyProps = UntrustedCodeBoundaryPolicyProps.builder()
        .additionalStatements(List.of(policyStatement))
        .managedPolicyName("managedPolicyName")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeBuild;
using Amazon.CDK.AWS.IAM;

PolicyStatement policyStatement;

var untrustedCodeBoundaryPolicyProps = new UntrustedCodeBoundaryPolicyProps {
    AdditionalStatements = new [] { policyStatement },
    ManagedPolicyName = "managedPolicyName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var policyStatement PolicyStatement

untrustedCodeBoundaryPolicyProps := &UntrustedCodeBoundaryPolicyProps{
	AdditionalStatements: []PolicyStatement{
		policyStatement,
	},
	ManagedPolicyName: jsii.String("managedPolicyName"),
}

Properties ​

additionalStatementsoptionalPolicyStatement[]additional_statementsoptionaltyping.List[PolicyStatement]additionalStatementsoptionalList<PolicyStatement>AdditionalStatementsoptionalPolicyStatement[]AdditionalStatementsoptional*[]PolicyStatement #
Additional statements to add to the default set of statements.

Default: No additional statements

managedPolicyNameoptionalstringmanaged_policy_nameoptionalstrmanagedPolicyNameoptionalStringManagedPolicyNameoptionalstringManagedPolicyNameoptional*string #
The name of the managed policy.

Default: A name is automatically generated.