1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ros
  5. TemplateScratch
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.ros.TemplateScratch

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    Provides a ROS Template Scratch resource.

    For information about ROS Template Scratch and how to use it, see What is Template Scratch.

    NOTE: Available in v1.151.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const default = alicloud.resourcemanager.getResourceGroups({});
    const example = new alicloud.ros.TemplateScratch("example", {
        description: "tf_testacc",
        templateScratchType: "ResourceImport",
        preferenceParameters: [{
            parameterKey: "DeletionPolicy",
            parameterValue: "Retain",
        }],
        sourceResourceGroup: {
            resourceGroupId: _default.then(_default => _default.ids?.[0]),
            resourceTypeFilters: ["ALIYUN::ECS::VPC"],
        },
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.resourcemanager.get_resource_groups()
    example = alicloud.ros.TemplateScratch("example",
        description="tf_testacc",
        template_scratch_type="ResourceImport",
        preference_parameters=[{
            "parameter_key": "DeletionPolicy",
            "parameter_value": "Retain",
        }],
        source_resource_group={
            "resource_group_id": default.ids[0],
            "resource_type_filters": ["ALIYUN::ECS::VPC"],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ros"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = ros.NewTemplateScratch(ctx, "example", &ros.TemplateScratchArgs{
    			Description:         pulumi.String("tf_testacc"),
    			TemplateScratchType: pulumi.String("ResourceImport"),
    			PreferenceParameters: ros.TemplateScratchPreferenceParameterArray{
    				&ros.TemplateScratchPreferenceParameterArgs{
    					ParameterKey:   pulumi.String("DeletionPolicy"),
    					ParameterValue: pulumi.String("Retain"),
    				},
    			},
    			SourceResourceGroup: &ros.TemplateScratchSourceResourceGroupArgs{
    				ResourceGroupId: pulumi.String(_default.Ids[0]),
    				ResourceTypeFilters: pulumi.StringArray{
    					pulumi.String("ALIYUN::ECS::VPC"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = AliCloud.ResourceManager.GetResourceGroups.Invoke();
    
        var example = new AliCloud.Ros.TemplateScratch("example", new()
        {
            Description = "tf_testacc",
            TemplateScratchType = "ResourceImport",
            PreferenceParameters = new[]
            {
                new AliCloud.Ros.Inputs.TemplateScratchPreferenceParameterArgs
                {
                    ParameterKey = "DeletionPolicy",
                    ParameterValue = "Retain",
                },
            },
            SourceResourceGroup = new AliCloud.Ros.Inputs.TemplateScratchSourceResourceGroupArgs
            {
                ResourceGroupId = @default.Apply(@default => @default.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[0])),
                ResourceTypeFilters = new[]
                {
                    "ALIYUN::ECS::VPC",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
    import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
    import com.pulumi.alicloud.ros.TemplateScratch;
    import com.pulumi.alicloud.ros.TemplateScratchArgs;
    import com.pulumi.alicloud.ros.inputs.TemplateScratchPreferenceParameterArgs;
    import com.pulumi.alicloud.ros.inputs.TemplateScratchSourceResourceGroupArgs;
    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) {
            final var default = ResourcemanagerFunctions.getResourceGroups();
    
            var example = new TemplateScratch("example", TemplateScratchArgs.builder()
                .description("tf_testacc")
                .templateScratchType("ResourceImport")
                .preferenceParameters(TemplateScratchPreferenceParameterArgs.builder()
                    .parameterKey("DeletionPolicy")
                    .parameterValue("Retain")
                    .build())
                .sourceResourceGroup(TemplateScratchSourceResourceGroupArgs.builder()
                    .resourceGroupId(default_.ids()[0])
                    .resourceTypeFilters("ALIYUN::ECS::VPC")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: alicloud:ros:TemplateScratch
        properties:
          description: tf_testacc
          templateScratchType: ResourceImport
          preferenceParameters:
            - parameterKey: DeletionPolicy
              parameterValue: Retain
          sourceResourceGroup:
            resourceGroupId: ${default.ids[0]}
            resourceTypeFilters:
              - ALIYUN::ECS::VPC
    variables:
      default:
        fn::invoke:
          Function: alicloud:resourcemanager:getResourceGroups
          Arguments: {}
    

    Create TemplateScratch Resource

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

    Constructor syntax

    new TemplateScratch(name: string, args: TemplateScratchArgs, opts?: CustomResourceOptions);
    @overload
    def TemplateScratch(resource_name: str,
                        args: TemplateScratchArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def TemplateScratch(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        template_scratch_type: Optional[str] = None,
                        description: Optional[str] = None,
                        execution_mode: Optional[str] = None,
                        logical_id_strategy: Optional[str] = None,
                        preference_parameters: Optional[Sequence[TemplateScratchPreferenceParameterArgs]] = None,
                        source_resource_group: Optional[TemplateScratchSourceResourceGroupArgs] = None,
                        source_resources: Optional[Sequence[TemplateScratchSourceResourceArgs]] = None,
                        source_tag: Optional[TemplateScratchSourceTagArgs] = None)
    func NewTemplateScratch(ctx *Context, name string, args TemplateScratchArgs, opts ...ResourceOption) (*TemplateScratch, error)
    public TemplateScratch(string name, TemplateScratchArgs args, CustomResourceOptions? opts = null)
    public TemplateScratch(String name, TemplateScratchArgs args)
    public TemplateScratch(String name, TemplateScratchArgs args, CustomResourceOptions options)
    
    type: alicloud:ros:TemplateScratch
    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 TemplateScratchArgs
    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 TemplateScratchArgs
    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 TemplateScratchArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TemplateScratchArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TemplateScratchArgs
    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 templateScratchResource = new AliCloud.Ros.TemplateScratch("templateScratchResource", new()
    {
        TemplateScratchType = "string",
        Description = "string",
        ExecutionMode = "string",
        LogicalIdStrategy = "string",
        PreferenceParameters = new[]
        {
            new AliCloud.Ros.Inputs.TemplateScratchPreferenceParameterArgs
            {
                ParameterKey = "string",
                ParameterValue = "string",
            },
        },
        SourceResourceGroup = new AliCloud.Ros.Inputs.TemplateScratchSourceResourceGroupArgs
        {
            ResourceGroupId = "string",
            ResourceTypeFilters = new[]
            {
                "string",
            },
        },
        SourceResources = new[]
        {
            new AliCloud.Ros.Inputs.TemplateScratchSourceResourceArgs
            {
                ResourceId = "string",
                ResourceType = "string",
            },
        },
        SourceTag = new AliCloud.Ros.Inputs.TemplateScratchSourceTagArgs
        {
            ResourceTags = 
            {
                { "string", "string" },
            },
            ResourceTypeFilters = new[]
            {
                "string",
            },
        },
    });
    
    example, err := ros.NewTemplateScratch(ctx, "templateScratchResource", &ros.TemplateScratchArgs{
    	TemplateScratchType: pulumi.String("string"),
    	Description:         pulumi.String("string"),
    	ExecutionMode:       pulumi.String("string"),
    	LogicalIdStrategy:   pulumi.String("string"),
    	PreferenceParameters: ros.TemplateScratchPreferenceParameterArray{
    		&ros.TemplateScratchPreferenceParameterArgs{
    			ParameterKey:   pulumi.String("string"),
    			ParameterValue: pulumi.String("string"),
    		},
    	},
    	SourceResourceGroup: &ros.TemplateScratchSourceResourceGroupArgs{
    		ResourceGroupId: pulumi.String("string"),
    		ResourceTypeFilters: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	SourceResources: ros.TemplateScratchSourceResourceArray{
    		&ros.TemplateScratchSourceResourceArgs{
    			ResourceId:   pulumi.String("string"),
    			ResourceType: pulumi.String("string"),
    		},
    	},
    	SourceTag: &ros.TemplateScratchSourceTagArgs{
    		ResourceTags: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    		ResourceTypeFilters: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    })
    
    var templateScratchResource = new TemplateScratch("templateScratchResource", TemplateScratchArgs.builder()
        .templateScratchType("string")
        .description("string")
        .executionMode("string")
        .logicalIdStrategy("string")
        .preferenceParameters(TemplateScratchPreferenceParameterArgs.builder()
            .parameterKey("string")
            .parameterValue("string")
            .build())
        .sourceResourceGroup(TemplateScratchSourceResourceGroupArgs.builder()
            .resourceGroupId("string")
            .resourceTypeFilters("string")
            .build())
        .sourceResources(TemplateScratchSourceResourceArgs.builder()
            .resourceId("string")
            .resourceType("string")
            .build())
        .sourceTag(TemplateScratchSourceTagArgs.builder()
            .resourceTags(Map.of("string", "string"))
            .resourceTypeFilters("string")
            .build())
        .build());
    
    template_scratch_resource = alicloud.ros.TemplateScratch("templateScratchResource",
        template_scratch_type="string",
        description="string",
        execution_mode="string",
        logical_id_strategy="string",
        preference_parameters=[{
            "parameter_key": "string",
            "parameter_value": "string",
        }],
        source_resource_group={
            "resource_group_id": "string",
            "resource_type_filters": ["string"],
        },
        source_resources=[{
            "resource_id": "string",
            "resource_type": "string",
        }],
        source_tag={
            "resource_tags": {
                "string": "string",
            },
            "resource_type_filters": ["string"],
        })
    
    const templateScratchResource = new alicloud.ros.TemplateScratch("templateScratchResource", {
        templateScratchType: "string",
        description: "string",
        executionMode: "string",
        logicalIdStrategy: "string",
        preferenceParameters: [{
            parameterKey: "string",
            parameterValue: "string",
        }],
        sourceResourceGroup: {
            resourceGroupId: "string",
            resourceTypeFilters: ["string"],
        },
        sourceResources: [{
            resourceId: "string",
            resourceType: "string",
        }],
        sourceTag: {
            resourceTags: {
                string: "string",
            },
            resourceTypeFilters: ["string"],
        },
    });
    
    type: alicloud:ros:TemplateScratch
    properties:
        description: string
        executionMode: string
        logicalIdStrategy: string
        preferenceParameters:
            - parameterKey: string
              parameterValue: string
        sourceResourceGroup:
            resourceGroupId: string
            resourceTypeFilters:
                - string
        sourceResources:
            - resourceId: string
              resourceType: string
        sourceTag:
            resourceTags:
                string: string
            resourceTypeFilters:
                - string
        templateScratchType: string
    

    TemplateScratch 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 TemplateScratch resource accepts the following input properties:

    TemplateScratchType string
    The type of the Template scan. Valid Values: ResourceImport or ArchitectureReplication.
    Description string
    The Description of the Template Scratch.
    ExecutionMode string
    The execution mode. Valid Values: Async or Sync.
    LogicalIdStrategy string
    Logical ID generation strategy. Valid Values: LongTypePrefixAndIndexSuffix, LongTypePrefixAndHashSuffix and ShortTypePrefixAndHashSuffix.
    PreferenceParameters List<Pulumi.AliCloud.Ros.Inputs.TemplateScratchPreferenceParameter>
    Priority parameter. See the following Block preference_parameters.
    SourceResourceGroup Pulumi.AliCloud.Ros.Inputs.TemplateScratchSourceResourceGroup
    Source resource grouping. See the following Block source_resource_group.
    SourceResources List<Pulumi.AliCloud.Ros.Inputs.TemplateScratchSourceResource>
    Source resource. See the following Block source_resources.
    SourceTag Pulumi.AliCloud.Ros.Inputs.TemplateScratchSourceTag
    Source tag. See the following Block source_tag.
    TemplateScratchType string
    The type of the Template scan. Valid Values: ResourceImport or ArchitectureReplication.
    Description string
    The Description of the Template Scratch.
    ExecutionMode string
    The execution mode. Valid Values: Async or Sync.
    LogicalIdStrategy string
    Logical ID generation strategy. Valid Values: LongTypePrefixAndIndexSuffix, LongTypePrefixAndHashSuffix and ShortTypePrefixAndHashSuffix.
    PreferenceParameters []TemplateScratchPreferenceParameterArgs
    Priority parameter. See the following Block preference_parameters.
    SourceResourceGroup TemplateScratchSourceResourceGroupArgs
    Source resource grouping. See the following Block source_resource_group.
    SourceResources []TemplateScratchSourceResourceArgs
    Source resource. See the following Block source_resources.
    SourceTag TemplateScratchSourceTagArgs
    Source tag. See the following Block source_tag.
    templateScratchType String
    The type of the Template scan. Valid Values: ResourceImport or ArchitectureReplication.
    description String
    The Description of the Template Scratch.
    executionMode String
    The execution mode. Valid Values: Async or Sync.
    logicalIdStrategy String
    Logical ID generation strategy. Valid Values: LongTypePrefixAndIndexSuffix, LongTypePrefixAndHashSuffix and ShortTypePrefixAndHashSuffix.
    preferenceParameters List<TemplateScratchPreferenceParameter>
    Priority parameter. See the following Block preference_parameters.
    sourceResourceGroup TemplateScratchSourceResourceGroup
    Source resource grouping. See the following Block source_resource_group.
    sourceResources List<TemplateScratchSourceResource>
    Source resource. See the following Block source_resources.
    sourceTag TemplateScratchSourceTag
    Source tag. See the following Block source_tag.
    templateScratchType string
    The type of the Template scan. Valid Values: ResourceImport or ArchitectureReplication.
    description string
    The Description of the Template Scratch.
    executionMode string
    The execution mode. Valid Values: Async or Sync.
    logicalIdStrategy string
    Logical ID generation strategy. Valid Values: LongTypePrefixAndIndexSuffix, LongTypePrefixAndHashSuffix and ShortTypePrefixAndHashSuffix.
    preferenceParameters TemplateScratchPreferenceParameter[]
    Priority parameter. See the following Block preference_parameters.
    sourceResourceGroup TemplateScratchSourceResourceGroup
    Source resource grouping. See the following Block source_resource_group.
    sourceResources TemplateScratchSourceResource[]
    Source resource. See the following Block source_resources.
    sourceTag TemplateScratchSourceTag
    Source tag. See the following Block source_tag.
    template_scratch_type str
    The type of the Template scan. Valid Values: ResourceImport or ArchitectureReplication.
    description str
    The Description of the Template Scratch.
    execution_mode str
    The execution mode. Valid Values: Async or Sync.
    logical_id_strategy str
    Logical ID generation strategy. Valid Values: LongTypePrefixAndIndexSuffix, LongTypePrefixAndHashSuffix and ShortTypePrefixAndHashSuffix.
    preference_parameters Sequence[TemplateScratchPreferenceParameterArgs]
    Priority parameter. See the following Block preference_parameters.
    source_resource_group TemplateScratchSourceResourceGroupArgs
    Source resource grouping. See the following Block source_resource_group.
    source_resources Sequence[TemplateScratchSourceResourceArgs]
    Source resource. See the following Block source_resources.
    source_tag TemplateScratchSourceTagArgs
    Source tag. See the following Block source_tag.
    templateScratchType String
    The type of the Template scan. Valid Values: ResourceImport or ArchitectureReplication.
    description String
    The Description of the Template Scratch.
    executionMode String
    The execution mode. Valid Values: Async or Sync.
    logicalIdStrategy String
    Logical ID generation strategy. Valid Values: LongTypePrefixAndIndexSuffix, LongTypePrefixAndHashSuffix and ShortTypePrefixAndHashSuffix.
    preferenceParameters List<Property Map>
    Priority parameter. See the following Block preference_parameters.
    sourceResourceGroup Property Map
    Source resource grouping. See the following Block source_resource_group.
    sourceResources List<Property Map>
    Source resource. See the following Block source_resources.
    sourceTag Property Map
    Source tag. See the following Block source_tag.

    Outputs

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

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

    Look up Existing TemplateScratch Resource

    Get an existing TemplateScratch 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?: TemplateScratchState, opts?: CustomResourceOptions): TemplateScratch
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            execution_mode: Optional[str] = None,
            logical_id_strategy: Optional[str] = None,
            preference_parameters: Optional[Sequence[TemplateScratchPreferenceParameterArgs]] = None,
            source_resource_group: Optional[TemplateScratchSourceResourceGroupArgs] = None,
            source_resources: Optional[Sequence[TemplateScratchSourceResourceArgs]] = None,
            source_tag: Optional[TemplateScratchSourceTagArgs] = None,
            status: Optional[str] = None,
            template_scratch_type: Optional[str] = None) -> TemplateScratch
    func GetTemplateScratch(ctx *Context, name string, id IDInput, state *TemplateScratchState, opts ...ResourceOption) (*TemplateScratch, error)
    public static TemplateScratch Get(string name, Input<string> id, TemplateScratchState? state, CustomResourceOptions? opts = null)
    public static TemplateScratch get(String name, Output<String> id, TemplateScratchState 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:
    Description string
    The Description of the Template Scratch.
    ExecutionMode string
    The execution mode. Valid Values: Async or Sync.
    LogicalIdStrategy string
    Logical ID generation strategy. Valid Values: LongTypePrefixAndIndexSuffix, LongTypePrefixAndHashSuffix and ShortTypePrefixAndHashSuffix.
    PreferenceParameters List<Pulumi.AliCloud.Ros.Inputs.TemplateScratchPreferenceParameter>
    Priority parameter. See the following Block preference_parameters.
    SourceResourceGroup Pulumi.AliCloud.Ros.Inputs.TemplateScratchSourceResourceGroup
    Source resource grouping. See the following Block source_resource_group.
    SourceResources List<Pulumi.AliCloud.Ros.Inputs.TemplateScratchSourceResource>
    Source resource. See the following Block source_resources.
    SourceTag Pulumi.AliCloud.Ros.Inputs.TemplateScratchSourceTag
    Source tag. See the following Block source_tag.
    Status string
    The status of the resource.
    TemplateScratchType string
    The type of the Template scan. Valid Values: ResourceImport or ArchitectureReplication.
    Description string
    The Description of the Template Scratch.
    ExecutionMode string
    The execution mode. Valid Values: Async or Sync.
    LogicalIdStrategy string
    Logical ID generation strategy. Valid Values: LongTypePrefixAndIndexSuffix, LongTypePrefixAndHashSuffix and ShortTypePrefixAndHashSuffix.
    PreferenceParameters []TemplateScratchPreferenceParameterArgs
    Priority parameter. See the following Block preference_parameters.
    SourceResourceGroup TemplateScratchSourceResourceGroupArgs
    Source resource grouping. See the following Block source_resource_group.
    SourceResources []TemplateScratchSourceResourceArgs
    Source resource. See the following Block source_resources.
    SourceTag TemplateScratchSourceTagArgs
    Source tag. See the following Block source_tag.
    Status string
    The status of the resource.
    TemplateScratchType string
    The type of the Template scan. Valid Values: ResourceImport or ArchitectureReplication.
    description String
    The Description of the Template Scratch.
    executionMode String
    The execution mode. Valid Values: Async or Sync.
    logicalIdStrategy String
    Logical ID generation strategy. Valid Values: LongTypePrefixAndIndexSuffix, LongTypePrefixAndHashSuffix and ShortTypePrefixAndHashSuffix.
    preferenceParameters List<TemplateScratchPreferenceParameter>
    Priority parameter. See the following Block preference_parameters.
    sourceResourceGroup TemplateScratchSourceResourceGroup
    Source resource grouping. See the following Block source_resource_group.
    sourceResources List<TemplateScratchSourceResource>
    Source resource. See the following Block source_resources.
    sourceTag TemplateScratchSourceTag
    Source tag. See the following Block source_tag.
    status String
    The status of the resource.
    templateScratchType String
    The type of the Template scan. Valid Values: ResourceImport or ArchitectureReplication.
    description string
    The Description of the Template Scratch.
    executionMode string
    The execution mode. Valid Values: Async or Sync.
    logicalIdStrategy string
    Logical ID generation strategy. Valid Values: LongTypePrefixAndIndexSuffix, LongTypePrefixAndHashSuffix and ShortTypePrefixAndHashSuffix.
    preferenceParameters TemplateScratchPreferenceParameter[]
    Priority parameter. See the following Block preference_parameters.
    sourceResourceGroup TemplateScratchSourceResourceGroup
    Source resource grouping. See the following Block source_resource_group.
    sourceResources TemplateScratchSourceResource[]
    Source resource. See the following Block source_resources.
    sourceTag TemplateScratchSourceTag
    Source tag. See the following Block source_tag.
    status string
    The status of the resource.
    templateScratchType string
    The type of the Template scan. Valid Values: ResourceImport or ArchitectureReplication.
    description str
    The Description of the Template Scratch.
    execution_mode str
    The execution mode. Valid Values: Async or Sync.
    logical_id_strategy str
    Logical ID generation strategy. Valid Values: LongTypePrefixAndIndexSuffix, LongTypePrefixAndHashSuffix and ShortTypePrefixAndHashSuffix.
    preference_parameters Sequence[TemplateScratchPreferenceParameterArgs]
    Priority parameter. See the following Block preference_parameters.
    source_resource_group TemplateScratchSourceResourceGroupArgs
    Source resource grouping. See the following Block source_resource_group.
    source_resources Sequence[TemplateScratchSourceResourceArgs]
    Source resource. See the following Block source_resources.
    source_tag TemplateScratchSourceTagArgs
    Source tag. See the following Block source_tag.
    status str
    The status of the resource.
    template_scratch_type str
    The type of the Template scan. Valid Values: ResourceImport or ArchitectureReplication.
    description String
    The Description of the Template Scratch.
    executionMode String
    The execution mode. Valid Values: Async or Sync.
    logicalIdStrategy String
    Logical ID generation strategy. Valid Values: LongTypePrefixAndIndexSuffix, LongTypePrefixAndHashSuffix and ShortTypePrefixAndHashSuffix.
    preferenceParameters List<Property Map>
    Priority parameter. See the following Block preference_parameters.
    sourceResourceGroup Property Map
    Source resource grouping. See the following Block source_resource_group.
    sourceResources List<Property Map>
    Source resource. See the following Block source_resources.
    sourceTag Property Map
    Source tag. See the following Block source_tag.
    status String
    The status of the resource.
    templateScratchType String
    The type of the Template scan. Valid Values: ResourceImport or ArchitectureReplication.

    Supporting Types

    TemplateScratchPreferenceParameter, TemplateScratchPreferenceParameterArgs

    ParameterKey string
    Priority parameter key. For more information about values, see supplementary instructions for request parameters.
    ParameterValue string
    Priority parameter value. For more information about values, see supplementary instructions for request parameters.
    ParameterKey string
    Priority parameter key. For more information about values, see supplementary instructions for request parameters.
    ParameterValue string
    Priority parameter value. For more information about values, see supplementary instructions for request parameters.
    parameterKey String
    Priority parameter key. For more information about values, see supplementary instructions for request parameters.
    parameterValue String
    Priority parameter value. For more information about values, see supplementary instructions for request parameters.
    parameterKey string
    Priority parameter key. For more information about values, see supplementary instructions for request parameters.
    parameterValue string
    Priority parameter value. For more information about values, see supplementary instructions for request parameters.
    parameter_key str
    Priority parameter key. For more information about values, see supplementary instructions for request parameters.
    parameter_value str
    Priority parameter value. For more information about values, see supplementary instructions for request parameters.
    parameterKey String
    Priority parameter key. For more information about values, see supplementary instructions for request parameters.
    parameterValue String
    Priority parameter value. For more information about values, see supplementary instructions for request parameters.

    TemplateScratchSourceResource, TemplateScratchSourceResourceArgs

    ResourceId string
    The ID of the Source Resource.
    ResourceType string
    The type of the Source resource.
    ResourceId string
    The ID of the Source Resource.
    ResourceType string
    The type of the Source resource.
    resourceId String
    The ID of the Source Resource.
    resourceType String
    The type of the Source resource.
    resourceId string
    The ID of the Source Resource.
    resourceType string
    The type of the Source resource.
    resource_id str
    The ID of the Source Resource.
    resource_type str
    The type of the Source resource.
    resourceId String
    The ID of the Source Resource.
    resourceType String
    The type of the Source resource.

    TemplateScratchSourceResourceGroup, TemplateScratchSourceResourceGroupArgs

    ResourceGroupId string
    The ID of the Source Resource Group.
    ResourceTypeFilters List<string>
    ResourceGroupId string
    The ID of the Source Resource Group.
    ResourceTypeFilters []string
    resourceGroupId String
    The ID of the Source Resource Group.
    resourceTypeFilters List<String>
    resourceGroupId string
    The ID of the Source Resource Group.
    resourceTypeFilters string[]
    resource_group_id str
    The ID of the Source Resource Group.
    resource_type_filters Sequence[str]
    resourceGroupId String
    The ID of the Source Resource Group.
    resourceTypeFilters List<String>

    TemplateScratchSourceTag, TemplateScratchSourceTagArgs

    ResourceTags Dictionary<string, string>
    Source label. NOTE: A maximum of 10 source labels can be configured.
    ResourceTypeFilters List<string>
    ResourceTags map[string]string
    Source label. NOTE: A maximum of 10 source labels can be configured.
    ResourceTypeFilters []string
    resourceTags Map<String,String>
    Source label. NOTE: A maximum of 10 source labels can be configured.
    resourceTypeFilters List<String>
    resourceTags {[key: string]: string}
    Source label. NOTE: A maximum of 10 source labels can be configured.
    resourceTypeFilters string[]
    resource_tags Mapping[str, str]
    Source label. NOTE: A maximum of 10 source labels can be configured.
    resource_type_filters Sequence[str]
    resourceTags Map<String>
    Source label. NOTE: A maximum of 10 source labels can be configured.
    resourceTypeFilters List<String>

    Import

    ROS Template Scratch can be imported using the id, e.g.

    $ pulumi import alicloud:ros/templateScratch:TemplateScratch example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi