Class ModelCardExportJob


  • public class ModelCardExportJob
    extends com.pulumi.resources.CustomResource
    Manage an Amazon SageMaker Model Card export job. ## Example Usage Basic usage:
     
     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());
     
         }
     }
     
     
    ## 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 ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • 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

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