Class: AWSCDK::CodeBuild::UntrustedCodeBoundaryPolicyProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_build/untrusted_code_boundary_policy_props.rb

Overview

Construction properties for UntrustedCodeBoundaryPolicy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(additional_statements: nil, managed_policy_name: nil) ⇒ UntrustedCodeBoundaryPolicyProps

Returns a new instance of UntrustedCodeBoundaryPolicyProps.

Parameters:

  • additional_statements (Array<AWSCDK::IAM::PolicyStatement>, nil) (defaults to: nil)

    Additional statements to add to the default set of statements.

  • managed_policy_name (String, nil) (defaults to: nil)

    The name of the managed policy.



9
10
11
12
13
14
# File 'code_build/untrusted_code_boundary_policy_props.rb', line 9

def initialize(additional_statements: nil, managed_policy_name: nil)
  @additional_statements = additional_statements
  Jsii::Type.check_type(@additional_statements, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pYW0uUG9saWN5U3RhdGVtZW50In0sImtpbmQiOiJhcnJheSJ9fQ==")), "additionalStatements") unless @additional_statements.nil?
  @managed_policy_name = managed_policy_name
  Jsii::Type.check_type(@managed_policy_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "managedPolicyName") unless @managed_policy_name.nil?
end

Instance Attribute Details

#additional_statementsArray<AWSCDK::IAM::PolicyStatement>? (readonly)

Note:

Default: - No additional statements

Additional statements to add to the default set of statements.

Returns:



20
21
22
# File 'code_build/untrusted_code_boundary_policy_props.rb', line 20

def additional_statements
  @additional_statements
end

#managed_policy_nameString? (readonly)

Note:

Default: - A name is automatically generated.

The name of the managed policy.

Returns:

  • (String, nil)


25
26
27
# File 'code_build/untrusted_code_boundary_policy_props.rb', line 25

def managed_policy_name
  @managed_policy_name
end

Class Method Details

.jsii_propertiesObject



27
28
29
30
31
32
# File 'code_build/untrusted_code_boundary_policy_props.rb', line 27

def self.jsii_properties
  {
    :additional_statements => "additionalStatements",
    :managed_policy_name => "managedPolicyName",
  }
end

Instance Method Details

#to_jsiiObject



34
35
36
37
38
39
40
41
# File 'code_build/untrusted_code_boundary_policy_props.rb', line 34

def to_jsii
  result = {}
  result.merge!({
    "additionalStatements" => @additional_statements,
    "managedPolicyName" => @managed_policy_name,
  })
  result.compact
end