Class: AWSCDK::Greengrass::CfnResourceDefinitionVersion::ResourceDownloadOwnerSettingProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(group_owner:, group_permission:) ⇒ ResourceDownloadOwnerSettingProperty

Returns a new instance of ResourceDownloadOwnerSettingProperty.

Parameters:

  • group_owner (String)

    The group owner of the machine learning resource.

  • group_permission (String)

    The permissions that the group owner has to the machine learning resource.



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 = group_permission
  Jsii::Type.check_type(@group_permission, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "groupPermission")
end

Instance Attribute Details

#group_ownerString (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_permissionString (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
  @group_permission
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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