Class: AWSCDK::Greengrass::CfnResourceDefinitionVersion::ResourceDownloadOwnerSettingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Greengrass::CfnResourceDefinitionVersion::ResourceDownloadOwnerSettingProperty
- Defined in:
- greengrass/cfn_resource_definition_version.rb
Overview
The owner setting for a downloaded machine learning resource.
For more information, see Access Machine Learning Resources from Lambda Functions in the Developer Guide .
In an CloudFormation template, ResourceDownloadOwnerSetting is the property type of the OwnerSetting property for the S3MachineLearningModelResourceData and SageMakerMachineLearningModelResourceData property types.
Instance Attribute Summary collapse
-
#group_owner ⇒ String
readonly
The group owner of the machine learning resource.
-
#group_permission ⇒ String
readonly
The permissions that the group owner has to the machine learning resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(group_owner:, group_permission:) ⇒ ResourceDownloadOwnerSettingProperty
constructor
A new instance of ResourceDownloadOwnerSettingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(group_owner:, group_permission:) ⇒ ResourceDownloadOwnerSettingProperty
Returns a new instance of ResourceDownloadOwnerSettingProperty.
760 761 762 763 764 765 |
# File 'greengrass/cfn_resource_definition_version.rb', line 760 def initialize(group_owner:, group_permission:) @group_owner = group_owner Jsii::Type.check_type(@group_owner, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "groupOwner") @group_permission = Jsii::Type.check_type(@group_permission, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "groupPermission") end |
Instance Attribute Details
#group_owner ⇒ String (readonly)
The group owner of the machine learning resource.
This is the group ID (GID) of an existing Linux OS group on the system. The group's permissions are added to the Lambda process.
773 774 775 |
# File 'greengrass/cfn_resource_definition_version.rb', line 773 def group_owner @group_owner end |
#group_permission ⇒ String (readonly)
The permissions that the group owner has to the machine learning resource.
Valid values are rw (read-write) or ro (read-only).
780 781 782 |
# File 'greengrass/cfn_resource_definition_version.rb', line 780 def @group_permission end |
Class Method Details
.jsii_properties ⇒ Object
782 783 784 785 786 787 |
# File 'greengrass/cfn_resource_definition_version.rb', line 782 def self.jsii_properties { :group_owner => "groupOwner", :group_permission => "groupPermission", } end |
Instance Method Details
#to_jsii ⇒ Object
789 790 791 792 793 794 795 796 |
# File 'greengrass/cfn_resource_definition_version.rb', line 789 def to_jsii result = {} result.merge!({ "groupOwner" => @group_owner, "groupPermission" => @group_permission, }) result.compact end |