Class: AWSCDK::Greengrass::CfnResourceDefinition::ResourceDownloadOwnerSettingProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
greengrass/cfn_resource_definition.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.



881
882
883
884
885
886
# File 'greengrass/cfn_resource_definition.rb', line 881

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.



894
895
896
# File 'greengrass/cfn_resource_definition.rb', line 894

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).



901
902
903
# File 'greengrass/cfn_resource_definition.rb', line 901

def group_permission
  @group_permission
end

Class Method Details

.jsii_propertiesObject



903
904
905
906
907
908
# File 'greengrass/cfn_resource_definition.rb', line 903

def self.jsii_properties
  {
    :group_owner => "groupOwner",
    :group_permission => "groupPermission",
  }
end

Instance Method Details

#to_jsiiObject



910
911
912
913
914
915
916
917
# File 'greengrass/cfn_resource_definition.rb', line 910

def to_jsii
  result = {}
  result.merge!({
    "groupOwner" => @group_owner,
    "groupPermission" => @group_permission,
  })
  result.compact
end