Class: AWSCDK::Sagemaker::CfnProject::CfnTemplateProviderDetailProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_project.rb

Overview

Details about a CloudFormation template provider configuration and associated provisioning information.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(template_name:, template_url:, parameters: nil, role_arn: nil) ⇒ CfnTemplateProviderDetailProperty

Returns a new instance of CfnTemplateProviderDetailProperty.

Parameters:



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

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

An array of CloudFormation stack parameters.



680
681
682
# File 'sagemaker/cfn_project.rb', line 680

def parameters
  @parameters
end

#role_arnString? (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_nameString (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_urlString (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_propertiesObject



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_jsiiObject



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