Class: AWSCDK::Budgets::CfnBudgetsAction::DefinitionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
budgets/cfn_budgets_action.rb

Overview

The definition is where you specify all of the type-specific parameters.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(iam_action_definition: nil, scp_action_definition: nil, ssm_action_definition: nil) ⇒ DefinitionProperty

Returns a new instance of DefinitionProperty.

Parameters:



663
664
665
666
667
668
669
670
# File 'budgets/cfn_budgets_action.rb', line 663

def initialize(iam_action_definition: nil, scp_action_definition: nil, ssm_action_definition: nil)
  @iam_action_definition = iam_action_definition.is_a?(Hash) ? ::AWSCDK::Budgets::CfnBudgetsAction::IAMActionDefinitionProperty.new(**iam_action_definition.transform_keys(&:to_sym)) : iam_action_definition
  Jsii::Type.check_type(@iam_action_definition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19idWRnZXRzLkNmbkJ1ZGdldHNBY3Rpb24uSWFtQWN0aW9uRGVmaW5pdGlvblByb3BlcnR5In1dfX0=")), "iamActionDefinition") unless @iam_action_definition.nil?
  @scp_action_definition = scp_action_definition.is_a?(Hash) ? ::AWSCDK::Budgets::CfnBudgetsAction::ScpActionDefinitionProperty.new(**scp_action_definition.transform_keys(&:to_sym)) : scp_action_definition
  Jsii::Type.check_type(@scp_action_definition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19idWRnZXRzLkNmbkJ1ZGdldHNBY3Rpb24uU2NwQWN0aW9uRGVmaW5pdGlvblByb3BlcnR5In1dfX0=")), "scpActionDefinition") unless @scp_action_definition.nil?
  @ssm_action_definition = ssm_action_definition.is_a?(Hash) ? ::AWSCDK::Budgets::CfnBudgetsAction::SSMActionDefinitionProperty.new(**ssm_action_definition.transform_keys(&:to_sym)) : ssm_action_definition
  Jsii::Type.check_type(@ssm_action_definition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19idWRnZXRzLkNmbkJ1ZGdldHNBY3Rpb24uU3NtQWN0aW9uRGVmaW5pdGlvblByb3BlcnR5In1dfX0=")), "ssmActionDefinition") unless @ssm_action_definition.nil?
end

Instance Attribute Details

#iam_action_definitionAWSCDK::IResolvable, ... (readonly)

The AWS Identity and Access Management ( IAM ) action definition details.



676
677
678
# File 'budgets/cfn_budgets_action.rb', line 676

def iam_action_definition
  @iam_action_definition
end

#scp_action_definitionAWSCDK::IResolvable, ... (readonly)

The service control policies (SCP) action definition details.



681
682
683
# File 'budgets/cfn_budgets_action.rb', line 681

def scp_action_definition
  @scp_action_definition
end

#ssm_action_definitionAWSCDK::IResolvable, ... (readonly)

The Amazon EC2 Systems Manager ( SSM ) action definition details.



686
687
688
# File 'budgets/cfn_budgets_action.rb', line 686

def ssm_action_definition
  @ssm_action_definition
end

Class Method Details

.jsii_propertiesObject



688
689
690
691
692
693
694
# File 'budgets/cfn_budgets_action.rb', line 688

def self.jsii_properties
  {
    :iam_action_definition => "iamActionDefinition",
    :scp_action_definition => "scpActionDefinition",
    :ssm_action_definition => "ssmActionDefinition",
  }
end

Instance Method Details

#to_jsiiObject



696
697
698
699
700
701
702
703
704
# File 'budgets/cfn_budgets_action.rb', line 696

def to_jsii
  result = {}
  result.merge!({
    "iamActionDefinition" => @iam_action_definition,
    "scpActionDefinition" => @scp_action_definition,
    "ssmActionDefinition" => @ssm_action_definition,
  })
  result.compact
end