1. Packages
  2. AWS Classic
  3. API Docs
  4. sagemaker
  5. ServicecatalogPortfolioStatus

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.44.0 published on Monday, Jul 8, 2024 by Pulumi

aws.sagemaker.ServicecatalogPortfolioStatus

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.44.0 published on Monday, Jul 8, 2024 by Pulumi

    Manages status of Service Catalog in SageMaker. Service Catalog is used to create SageMaker projects.

    Example Usage

    Usage:

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.sagemaker.ServicecatalogPortfolioStatus("example", {status: "Enabled"});
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.sagemaker.ServicecatalogPortfolioStatus("example", status="Enabled")
    
    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.NewServicecatalogPortfolioStatus(ctx, "example", &sagemaker.ServicecatalogPortfolioStatusArgs{
    			Status: pulumi.String("Enabled"),
    		})
    		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.ServicecatalogPortfolioStatus("example", new()
        {
            Status = "Enabled",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.sagemaker.ServicecatalogPortfolioStatus;
    import com.pulumi.aws.sagemaker.ServicecatalogPortfolioStatusArgs;
    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 ServicecatalogPortfolioStatus("example", ServicecatalogPortfolioStatusArgs.builder()
                .status("Enabled")
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:sagemaker:ServicecatalogPortfolioStatus
        properties:
          status: Enabled
    

    Create ServicecatalogPortfolioStatus Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ServicecatalogPortfolioStatus(name: string, args: ServicecatalogPortfolioStatusArgs, opts?: CustomResourceOptions);
    @overload
    def ServicecatalogPortfolioStatus(resource_name: str,
                                      args: ServicecatalogPortfolioStatusArgs,
                                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServicecatalogPortfolioStatus(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      status: Optional[str] = None)
    func NewServicecatalogPortfolioStatus(ctx *Context, name string, args ServicecatalogPortfolioStatusArgs, opts ...ResourceOption) (*ServicecatalogPortfolioStatus, error)
    public ServicecatalogPortfolioStatus(string name, ServicecatalogPortfolioStatusArgs args, CustomResourceOptions? opts = null)
    public ServicecatalogPortfolioStatus(String name, ServicecatalogPortfolioStatusArgs args)
    public ServicecatalogPortfolioStatus(String name, ServicecatalogPortfolioStatusArgs args, CustomResourceOptions options)
    
    type: aws:sagemaker:ServicecatalogPortfolioStatus
    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 ServicecatalogPortfolioStatusArgs
    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 ServicecatalogPortfolioStatusArgs
    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 ServicecatalogPortfolioStatusArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServicecatalogPortfolioStatusArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServicecatalogPortfolioStatusArgs
    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 servicecatalogPortfolioStatusResource = new Aws.Sagemaker.ServicecatalogPortfolioStatus("servicecatalogPortfolioStatusResource", new()
    {
        Status = "string",
    });
    
    example, err := sagemaker.NewServicecatalogPortfolioStatus(ctx, "servicecatalogPortfolioStatusResource", &sagemaker.ServicecatalogPortfolioStatusArgs{
    	Status: pulumi.String("string"),
    })
    
    var servicecatalogPortfolioStatusResource = new ServicecatalogPortfolioStatus("servicecatalogPortfolioStatusResource", ServicecatalogPortfolioStatusArgs.builder()
        .status("string")
        .build());
    
    servicecatalog_portfolio_status_resource = aws.sagemaker.ServicecatalogPortfolioStatus("servicecatalogPortfolioStatusResource", status="string")
    
    const servicecatalogPortfolioStatusResource = new aws.sagemaker.ServicecatalogPortfolioStatus("servicecatalogPortfolioStatusResource", {status: "string"});
    
    type: aws:sagemaker:ServicecatalogPortfolioStatus
    properties:
        status: string
    

    ServicecatalogPortfolioStatus Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ServicecatalogPortfolioStatus resource accepts the following input properties:

    Status string
    Whether Service Catalog is enabled or disabled in SageMaker. Valid values are Enabled and Disabled.
    Status string
    Whether Service Catalog is enabled or disabled in SageMaker. Valid values are Enabled and Disabled.
    status String
    Whether Service Catalog is enabled or disabled in SageMaker. Valid values are Enabled and Disabled.
    status string
    Whether Service Catalog is enabled or disabled in SageMaker. Valid values are Enabled and Disabled.
    status str
    Whether Service Catalog is enabled or disabled in SageMaker. Valid values are Enabled and Disabled.
    status String
    Whether Service Catalog is enabled or disabled in SageMaker. Valid values are Enabled and Disabled.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServicecatalogPortfolioStatus resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ServicecatalogPortfolioStatus Resource

    Get an existing ServicecatalogPortfolioStatus 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?: ServicecatalogPortfolioStatusState, opts?: CustomResourceOptions): ServicecatalogPortfolioStatus
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            status: Optional[str] = None) -> ServicecatalogPortfolioStatus
    func GetServicecatalogPortfolioStatus(ctx *Context, name string, id IDInput, state *ServicecatalogPortfolioStatusState, opts ...ResourceOption) (*ServicecatalogPortfolioStatus, error)
    public static ServicecatalogPortfolioStatus Get(string name, Input<string> id, ServicecatalogPortfolioStatusState? state, CustomResourceOptions? opts = null)
    public static ServicecatalogPortfolioStatus get(String name, Output<String> id, ServicecatalogPortfolioStatusState 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.
    The following state arguments are supported:
    Status string
    Whether Service Catalog is enabled or disabled in SageMaker. Valid values are Enabled and Disabled.
    Status string
    Whether Service Catalog is enabled or disabled in SageMaker. Valid values are Enabled and Disabled.
    status String
    Whether Service Catalog is enabled or disabled in SageMaker. Valid values are Enabled and Disabled.
    status string
    Whether Service Catalog is enabled or disabled in SageMaker. Valid values are Enabled and Disabled.
    status str
    Whether Service Catalog is enabled or disabled in SageMaker. Valid values are Enabled and Disabled.
    status String
    Whether Service Catalog is enabled or disabled in SageMaker. Valid values are Enabled and Disabled.

    Import

    Using pulumi import, import models using the id. For example:

    $ pulumi import aws:sagemaker/servicecatalogPortfolioStatus:ServicecatalogPortfolioStatus example us-east-1
    

    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.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.44.0 published on Monday, Jul 8, 2024 by Pulumi