Class: AWSCDK::Sagemaker::CfnProject::CfnTemplateProviderDetailProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnProject::CfnTemplateProviderDetailProperty
- Defined in:
- sagemaker/cfn_project.rb
Overview
Details about a CloudFormation template provider configuration and associated provisioning information.
Instance Attribute Summary collapse
-
#parameters ⇒ AWSCDK::IResolvable, ...
readonly
An array of CloudFormation stack parameters.
-
#role_arn ⇒ String?
readonly
The IAM role used by CloudFormation to create the stack.
-
#template_name ⇒ String
readonly
The unique identifier of the template within the project.
-
#template_url ⇒ String
readonly
The Amazon S3 URL of the CloudFormation template.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(template_name:, template_url:, parameters: nil, role_arn: nil) ⇒ CfnTemplateProviderDetailProperty
constructor
A new instance of CfnTemplateProviderDetailProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(template_name:, template_url:, parameters: nil, role_arn: nil) ⇒ CfnTemplateProviderDetailProperty
Returns a new instance of CfnTemplateProviderDetailProperty.
655 656 657 658 659 660 661 662 663 664 |
# File 'sagemaker/cfn_project.rb', line 655 def initialize(template_name:, template_url:, parameters: nil, role_arn: nil) @template_name = template_name Jsii::Type.check_type(@template_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "templateName") @template_url = template_url Jsii::Type.check_type(@template_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "templateUrl") @parameters = parameters Jsii::Type.check_type(@parameters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2FnZW1ha2VyLkNmblByb2plY3QuQ2ZuU3RhY2tQYXJhbWV0ZXJQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "parameters") unless @parameters.nil? @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") unless @role_arn.nil? end |
Instance Attribute Details
#parameters ⇒ AWSCDK::IResolvable, ... (readonly)
An array of CloudFormation stack parameters.
680 681 682 |
# File 'sagemaker/cfn_project.rb', line 680 def parameters @parameters end |
#role_arn ⇒ String? (readonly)
The IAM role used by CloudFormation to create the stack.
685 686 687 |
# File 'sagemaker/cfn_project.rb', line 685 def role_arn @role_arn end |
#template_name ⇒ String (readonly)
The unique identifier of the template within the project.
670 671 672 |
# File 'sagemaker/cfn_project.rb', line 670 def template_name @template_name end |
#template_url ⇒ String (readonly)
The Amazon S3 URL of the CloudFormation template.
675 676 677 |
# File 'sagemaker/cfn_project.rb', line 675 def template_url @template_url end |
Class Method Details
.jsii_properties ⇒ Object
687 688 689 690 691 692 693 694 |
# File 'sagemaker/cfn_project.rb', line 687 def self.jsii_properties { :template_name => "templateName", :template_url => "templateUrl", :parameters => "parameters", :role_arn => "roleArn", } end |
Instance Method Details
#to_jsii ⇒ Object
696 697 698 699 700 701 702 703 704 705 |
# File 'sagemaker/cfn_project.rb', line 696 def to_jsii result = {} result.merge!({ "templateName" => @template_name, "templateUrl" => @template_url, "parameters" => @parameters, "roleArn" => @role_arn, }) result.compact end |