Class: AWSCDK::APS::CfnResourcePolicyProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
aps/cfn_resource_policy_props.rb

Overview

Properties for defining a CfnResourcePolicy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(policy_document:, workspace_arn:) ⇒ CfnResourcePolicyProps

Returns a new instance of CfnResourcePolicyProps.

Parameters:

  • policy_document (String)

    The JSON to use as the Resource-based Policy.

  • workspace_arn (String)

    An ARN identifying a Workspace.



11
12
13
14
15
16
# File 'aps/cfn_resource_policy_props.rb', line 11

def initialize(policy_document:, workspace_arn:)
  @policy_document = policy_document
  Jsii::Type.check_type(@policy_document, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "policyDocument")
  @workspace_arn = workspace_arn
  Jsii::Type.check_type(@workspace_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "workspaceArn")
end

Instance Attribute Details

#policy_documentString (readonly)

The JSON to use as the Resource-based Policy.



22
23
24
# File 'aps/cfn_resource_policy_props.rb', line 22

def policy_document
  @policy_document
end

#workspace_arnString (readonly)

An ARN identifying a Workspace.



27
28
29
# File 'aps/cfn_resource_policy_props.rb', line 27

def workspace_arn
  @workspace_arn
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'aps/cfn_resource_policy_props.rb', line 29

def self.jsii_properties
  {
    :policy_document => "policyDocument",
    :workspace_arn => "workspaceArn",
  }
end

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'aps/cfn_resource_policy_props.rb', line 36

def to_jsii
  result = {}
  result.merge!({
    "policyDocument" => @policy_document,
    "workspaceArn" => @workspace_arn,
  })
  result.compact
end