1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ros
  5. TemplateScratch
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.ros.TemplateScratch

Explore with Pulumi AI

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"],
    },
});
Copy
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"],
    })
Copy
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
	})
}
Copy
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",
            },
        },
    });

});
Copy
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());

    }
}
Copy
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: {}
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. TemplateScratchArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. TemplateScratchArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TemplateScratchArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
        },
    },
});
Copy
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"),
		},
	},
})
Copy
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());
Copy
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"],
    })
Copy
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"],
    },
});
Copy
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
Copy

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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
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)
resources:  _:    type: alicloud:ros:TemplateScratch    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The type of the Template scan. Valid Values: ResourceImport or ArchitectureReplication.

Supporting Types

TemplateScratchPreferenceParameter
, TemplateScratchPreferenceParameterArgs

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

TemplateScratchSourceResource
, TemplateScratchSourceResourceArgs

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

TemplateScratchSourceResourceGroup
, TemplateScratchSourceResourceGroupArgs

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

TemplateScratchSourceTag
, TemplateScratchSourceTagArgs

ResourceTags This property is required. Dictionary<string, string>
Source label. NOTE: A maximum of 10 source labels can be configured.
ResourceTypeFilters List<string>
ResourceTags This property is required. map[string]string
Source label. NOTE: A maximum of 10 source labels can be configured.
ResourceTypeFilters []string
resourceTags This property is required. Map<String,String>
Source label. NOTE: A maximum of 10 source labels can be configured.
resourceTypeFilters List<String>
resourceTags This property is required. {[key: string]: string}
Source label. NOTE: A maximum of 10 source labels can be configured.
resourceTypeFilters string[]
resource_tags This property is required. Mapping[str, str]
Source label. NOTE: A maximum of 10 source labels can be configured.
resource_type_filters Sequence[str]
resourceTags This property is required. 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>
Copy

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.