Skip to content
v2.278.0

CfnModelPackageGroupProps Struct ​

Properties for defining a CfnModelPackageGroup.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';

declare const modelPackageGroupPolicy: any;
const cfnModelPackageGroupProps: sagemaker.CfnModelPackageGroupProps = {
  modelPackageGroupName: 'modelPackageGroupName',

  // the properties below are optional
  modelPackageGroupDescription: 'modelPackageGroupDescription',
  modelPackageGroupPolicy: modelPackageGroupPolicy,
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

# model_package_group_policy: Any

cfn_model_package_group_props = sagemaker.CfnModelPackageGroupProps(
    model_package_group_name="modelPackageGroupName",

    # the properties below are optional
    model_package_group_description="modelPackageGroupDescription",
    model_package_group_policy=model_package_group_policy,
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;

Object modelPackageGroupPolicy;

CfnModelPackageGroupProps cfnModelPackageGroupProps = CfnModelPackageGroupProps.builder()
        .modelPackageGroupName("modelPackageGroupName")

        // the properties below are optional
        .modelPackageGroupDescription("modelPackageGroupDescription")
        .modelPackageGroupPolicy(modelPackageGroupPolicy)
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;

var modelPackageGroupPolicy;

var cfnModelPackageGroupProps = new CfnModelPackageGroupProps {
    ModelPackageGroupName = "modelPackageGroupName",

    // the properties below are optional
    ModelPackageGroupDescription = "modelPackageGroupDescription",
    ModelPackageGroupPolicy = modelPackageGroupPolicy,
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var modelPackageGroupPolicy interface{}

cfnModelPackageGroupProps := &CfnModelPackageGroupProps{
	ModelPackageGroupName: jsii.String("modelPackageGroupName"),

	// the properties below are optional
	ModelPackageGroupDescription: jsii.String("modelPackageGroupDescription"),
	ModelPackageGroupPolicy: modelPackageGroupPolicy,
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

modelPackageGroupDescriptionoptionalstringmodel_package_group_descriptionoptionalstrmodelPackageGroupDescriptionoptionalStringModelPackageGroupDescriptionoptionalstringModelPackageGroupDescriptionoptional*string #
The description for the model group.
modelPackageGroupNamestringmodel_package_group_namestrmodelPackageGroupNameStringModelPackageGroupNamestringModelPackageGroupName*string required #
The name of the model group.
modelPackageGroupPolicyoptionalanymodel_package_group_policyoptionalAnymodelPackageGroupPolicyoptionalObjectModelPackageGroupPolicyoptionalobjectModelPackageGroupPolicyoptionalinterface{} #
A resouce policy to control access to a model group.
notes

For information about resoure policies, see Identity-based policies and resource-based policies in the AWS Identity and Access Management User Guide. .

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of key-value pairs to apply to this resource.

For more information, see Tag .