Package com.pulumi.aws.sagemaker
Class ModelCardExportJob
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.sagemaker.ModelCardExportJob
-
public class ModelCardExportJob extends com.pulumi.resources.CustomResourceManage an Amazon SageMaker Model Card export job. ## Example Usage Basic usage:
## Import Using `pulumi import`, import model card export jobs using the `modelCardExportJobArn`. For example: ```sh $ pulumi import aws:sagemaker/modelCardExportJob:ModelCardExportJob example arn:aws:sagemaker:us-west-2:123456789012:model-card/my-model-card/export-job/my-model-card-export-job ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.sagemaker.ModelCardExportJob; import com.pulumi.aws.sagemaker.ModelCardExportJobArgs; import com.pulumi.aws.sagemaker.inputs.ModelCardExportJobOutputConfigArgs; import java.util.ArrayList; import java.util.Arrays; 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 ModelCardExportJob("example", ModelCardExportJobArgs.builder() .outputConfig(ModelCardExportJobOutputConfigArgs.builder() .s3OutputPath(String.format("s3://%s/", test.example())) .build()) .modelCardExportJobName("my-model-card-export-job") .modelCardName(exampleAwsSagemakerModelCard.modelCardName()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description ModelCardExportJob(java.lang.String name)ModelCardExportJob(java.lang.String name, ModelCardExportJobArgs args)ModelCardExportJob(java.lang.String name, ModelCardExportJobArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.List<ModelCardExportJobExportArtifact>>exportArtifacts()static ModelCardExportJobget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ModelCardExportJobState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>modelCardExportJobArn()com.pulumi.core.Output<java.lang.String>modelCardExportJobName()com.pulumi.core.Output<java.lang.String>modelCardName()com.pulumi.core.Output<java.lang.Integer>modelCardVersion()com.pulumi.core.Output<ModelCardExportJobOutputConfig>outputConfig()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.util.Optional<ModelCardExportJobTimeouts>>timeouts()
-
-
-
Constructor Detail
-
ModelCardExportJob
public ModelCardExportJob(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
ModelCardExportJob
public ModelCardExportJob(java.lang.String name, ModelCardExportJobArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
ModelCardExportJob
public ModelCardExportJob(java.lang.String name, ModelCardExportJobArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
exportArtifacts
public com.pulumi.core.Output<java.util.List<ModelCardExportJobExportArtifact>> exportArtifacts()
- Returns:
- Exported model card artifacts.
-
modelCardExportJobArn
public com.pulumi.core.Output<java.lang.String> modelCardExportJobArn()
- Returns:
- ARN of the model card export job.
-
modelCardExportJobName
public com.pulumi.core.Output<java.lang.String> modelCardExportJobName()
- Returns:
- Name of the model card export job.
-
modelCardName
public com.pulumi.core.Output<java.lang.String> modelCardName()
- Returns:
- Name of the model card.
-
modelCardVersion
public com.pulumi.core.Output<java.lang.Integer> modelCardVersion()
-
outputConfig
public com.pulumi.core.Output<ModelCardExportJobOutputConfig> outputConfig()
- Returns:
- Export output details. Fields are documented below.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration
-
timeouts
public com.pulumi.core.Output<java.util.Optional<ModelCardExportJobTimeouts>> timeouts()
-
get
public static ModelCardExportJob get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ModelCardExportJobState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-