Class: AWSCDK::SSM::CfnResourceDataSync::AWSOrganizationsSourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SSM::CfnResourceDataSync::AWSOrganizationsSourceProperty
- Defined in:
- ssm/cfn_resource_data_sync.rb
Overview
Information about the AwsOrganizationsSource resource data sync source.
A sync source of this type can synchronize data from AWS Organizations or, if an AWS organization isn't present, from multiple AWS Regions .
Instance Attribute Summary collapse
-
#organization_source_type ⇒ String
readonly
If an AWS organization is present, this is either
OrganizationalUnitsorEntireOrganization. -
#organizational_units ⇒ Array<String>?
readonly
The AWS Organizations organization units included in the sync.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(organization_source_type:, organizational_units: nil) ⇒ AWSOrganizationsSourceProperty
constructor
A new instance of AWSOrganizationsSourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(organization_source_type:, organizational_units: nil) ⇒ AWSOrganizationsSourceProperty
Returns a new instance of AWSOrganizationsSourceProperty.
641 642 643 644 645 646 |
# File 'ssm/cfn_resource_data_sync.rb', line 641 def initialize(organization_source_type:, organizational_units: nil) @organization_source_type = organization_source_type Jsii::Type.check_type(@organization_source_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "organizationSourceType") @organizational_units = organizational_units Jsii::Type.check_type(@organizational_units, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "organizationalUnits") unless @organizational_units.nil? end |
Instance Attribute Details
#organization_source_type ⇒ String (readonly)
If an AWS organization is present, this is either OrganizationalUnits or EntireOrganization .
For OrganizationalUnits , the data is aggregated from a set of organization units. For EntireOrganization , the data is aggregated from the entire AWS organization.
654 655 656 |
# File 'ssm/cfn_resource_data_sync.rb', line 654 def organization_source_type @organization_source_type end |
#organizational_units ⇒ Array<String>? (readonly)
The AWS Organizations organization units included in the sync.
659 660 661 |
# File 'ssm/cfn_resource_data_sync.rb', line 659 def organizational_units @organizational_units end |
Class Method Details
.jsii_properties ⇒ Object
661 662 663 664 665 666 |
# File 'ssm/cfn_resource_data_sync.rb', line 661 def self.jsii_properties { :organization_source_type => "organizationSourceType", :organizational_units => "organizationalUnits", } end |
Instance Method Details
#to_jsii ⇒ Object
668 669 670 671 672 673 674 675 |
# File 'ssm/cfn_resource_data_sync.rb', line 668 def to_jsii result = {} result.merge!({ "organizationSourceType" => @organization_source_type, "organizationalUnits" => @organizational_units, }) result.compact end |