aws.sagemaker.ModelPackageGroup
Explore with Pulumi AI
Provides a SageMaker Model Package Group resource.
Example Usage
Basic usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.sagemaker.ModelPackageGroup("example", {modelPackageGroupName: "example"});
import pulumi
import pulumi_aws as aws
example = aws.sagemaker.ModelPackageGroup("example", model_package_group_name="example")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/sagemaker"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sagemaker.NewModelPackageGroup(ctx, "example", &sagemaker.ModelPackageGroupArgs{
ModelPackageGroupName: pulumi.String("example"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Sagemaker.ModelPackageGroup("example", new()
{
ModelPackageGroupName = "example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sagemaker.ModelPackageGroup;
import com.pulumi.aws.sagemaker.ModelPackageGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ModelPackageGroup("example", ModelPackageGroupArgs.builder()
.modelPackageGroupName("example")
.build());
}
}
resources:
example:
type: aws:sagemaker:ModelPackageGroup
properties:
modelPackageGroupName: example
Create ModelPackageGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ModelPackageGroup(name: string, args: ModelPackageGroupArgs, opts?: CustomResourceOptions);
@overload
def ModelPackageGroup(resource_name: str,
args: ModelPackageGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ModelPackageGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
model_package_group_name: Optional[str] = None,
model_package_group_description: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewModelPackageGroup(ctx *Context, name string, args ModelPackageGroupArgs, opts ...ResourceOption) (*ModelPackageGroup, error)
public ModelPackageGroup(string name, ModelPackageGroupArgs args, CustomResourceOptions? opts = null)
public ModelPackageGroup(String name, ModelPackageGroupArgs args)
public ModelPackageGroup(String name, ModelPackageGroupArgs args, CustomResourceOptions options)
type: aws:sagemaker:ModelPackageGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ModelPackageGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ModelPackageGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ModelPackageGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ModelPackageGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ModelPackageGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var modelPackageGroupResource = new Aws.Sagemaker.ModelPackageGroup("modelPackageGroupResource", new()
{
ModelPackageGroupName = "string",
ModelPackageGroupDescription = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := sagemaker.NewModelPackageGroup(ctx, "modelPackageGroupResource", &sagemaker.ModelPackageGroupArgs{
ModelPackageGroupName: pulumi.String("string"),
ModelPackageGroupDescription: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var modelPackageGroupResource = new ModelPackageGroup("modelPackageGroupResource", ModelPackageGroupArgs.builder()
.modelPackageGroupName("string")
.modelPackageGroupDescription("string")
.tags(Map.of("string", "string"))
.build());
model_package_group_resource = aws.sagemaker.ModelPackageGroup("modelPackageGroupResource",
model_package_group_name="string",
model_package_group_description="string",
tags={
"string": "string",
})
const modelPackageGroupResource = new aws.sagemaker.ModelPackageGroup("modelPackageGroupResource", {
modelPackageGroupName: "string",
modelPackageGroupDescription: "string",
tags: {
string: "string",
},
});
type: aws:sagemaker:ModelPackageGroup
properties:
modelPackageGroupDescription: string
modelPackageGroupName: string
tags:
string: string
ModelPackageGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ModelPackageGroup resource accepts the following input properties:
- Model
Package stringGroup Name - The name of the model group.
- Model
Package stringGroup Description - A description for the model group.
- Dictionary<string, string>
- A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Model
Package stringGroup Name - The name of the model group.
- Model
Package stringGroup Description - A description for the model group.
- map[string]string
- A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- model
Package StringGroup Name - The name of the model group.
- model
Package StringGroup Description - A description for the model group.
- Map<String,String>
- A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- model
Package stringGroup Name - The name of the model group.
- model
Package stringGroup Description - A description for the model group.
- {[key: string]: string}
- A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- model_
package_ strgroup_ name - The name of the model group.
- model_
package_ strgroup_ description - A description for the model group.
- Mapping[str, str]
- A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- model
Package StringGroup Name - The name of the model group.
- model
Package StringGroup Description - A description for the model group.
- Map<String>
- A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the ModelPackageGroup resource produces the following output properties:
Look up Existing ModelPackageGroup Resource
Get an existing ModelPackageGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ModelPackageGroupState, opts?: CustomResourceOptions): ModelPackageGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
model_package_group_description: Optional[str] = None,
model_package_group_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> ModelPackageGroup
func GetModelPackageGroup(ctx *Context, name string, id IDInput, state *ModelPackageGroupState, opts ...ResourceOption) (*ModelPackageGroup, error)
public static ModelPackageGroup Get(string name, Input<string> id, ModelPackageGroupState? state, CustomResourceOptions? opts = null)
public static ModelPackageGroup get(String name, Output<String> id, ModelPackageGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- The Amazon Resource Name (ARN) assigned by AWS to this Model Package Group.
- Model
Package stringGroup Description - A description for the model group.
- Model
Package stringGroup Name - The name of the model group.
- Dictionary<string, string>
- A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- The Amazon Resource Name (ARN) assigned by AWS to this Model Package Group.
- Model
Package stringGroup Description - A description for the model group.
- Model
Package stringGroup Name - The name of the model group.
- map[string]string
- A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The Amazon Resource Name (ARN) assigned by AWS to this Model Package Group.
- model
Package StringGroup Description - A description for the model group.
- model
Package StringGroup Name - The name of the model group.
- Map<String,String>
- A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- The Amazon Resource Name (ARN) assigned by AWS to this Model Package Group.
- model
Package stringGroup Description - A description for the model group.
- model
Package stringGroup Name - The name of the model group.
- {[key: string]: string}
- A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- The Amazon Resource Name (ARN) assigned by AWS to this Model Package Group.
- model_
package_ strgroup_ description - A description for the model group.
- model_
package_ strgroup_ name - The name of the model group.
- Mapping[str, str]
- A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The Amazon Resource Name (ARN) assigned by AWS to this Model Package Group.
- model
Package StringGroup Description - A description for the model group.
- model
Package StringGroup Name - The name of the model group.
- Map<String>
- A map of tags to assign to the resource. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Import
Using pulumi import
, import SageMaker Model Package Groups using the name
. For example:
$ pulumi import aws:sagemaker/modelPackageGroup:ModelPackageGroup test_model_package_group my-code-repo
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.