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"],
},
});
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, nil, 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=[alicloud.ros.TemplateScratchPreferenceParameterArgs(
parameter_key="string",
parameter_value="string",
)],
source_resource_group=alicloud.ros.TemplateScratchSourceResourceGroupArgs(
resource_group_id="string",
resource_type_filters=["string"],
),
source_resources=[alicloud.ros.TemplateScratchSourceResourceArgs(
resource_id="string",
resource_type="string",
)],
source_tag=alicloud.ros.TemplateScratchSourceTagArgs(
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
The TemplateScratch resource accepts the following input properties:
- Template
Scratch stringType - The type of the Template scan. Valid Values:
ResourceImport
orArchitectureReplication
. - Description string
- The Description of the Template Scratch.
- Execution
Mode string - The execution mode. Valid Values:
Async
orSync
. - Logical
Id stringStrategy - Logical ID generation strategy. Valid Values:
LongTypePrefixAndIndexSuffix
,LongTypePrefixAndHashSuffix
andShortTypePrefixAndHashSuffix
. - Preference
Parameters List<Pulumi.Ali Cloud. Ros. Inputs. Template Scratch Preference Parameter> - Priority parameter. See the following
Block preference_parameters
. - Source
Resource Pulumi.Group Ali Cloud. Ros. Inputs. Template Scratch Source Resource Group - Source resource grouping. See the following
Block source_resource_group
. - Source
Resources List<Pulumi.Ali Cloud. Ros. Inputs. Template Scratch Source Resource> - Source resource. See the following
Block source_resources
. - Source
Tag Pulumi.Ali Cloud. Ros. Inputs. Template Scratch Source Tag - Source tag. See the following
Block source_tag
.
- Template
Scratch stringType - The type of the Template scan. Valid Values:
ResourceImport
orArchitectureReplication
. - Description string
- The Description of the Template Scratch.
- Execution
Mode string - The execution mode. Valid Values:
Async
orSync
. - Logical
Id stringStrategy - Logical ID generation strategy. Valid Values:
LongTypePrefixAndIndexSuffix
,LongTypePrefixAndHashSuffix
andShortTypePrefixAndHashSuffix
. - Preference
Parameters []TemplateScratch Preference Parameter Args - Priority parameter. See the following
Block preference_parameters
. - Source
Resource TemplateGroup Scratch Source Resource Group Args - Source resource grouping. See the following
Block source_resource_group
. - Source
Resources []TemplateScratch Source Resource Args - Source resource. See the following
Block source_resources
. - Source
Tag TemplateScratch Source Tag Args - Source tag. See the following
Block source_tag
.
- template
Scratch StringType - The type of the Template scan. Valid Values:
ResourceImport
orArchitectureReplication
. - description String
- The Description of the Template Scratch.
- execution
Mode String - The execution mode. Valid Values:
Async
orSync
. - logical
Id StringStrategy - Logical ID generation strategy. Valid Values:
LongTypePrefixAndIndexSuffix
,LongTypePrefixAndHashSuffix
andShortTypePrefixAndHashSuffix
. - preference
Parameters List<TemplateScratch Preference Parameter> - Priority parameter. See the following
Block preference_parameters
. - source
Resource TemplateGroup Scratch Source Resource Group - Source resource grouping. See the following
Block source_resource_group
. - source
Resources List<TemplateScratch Source Resource> - Source resource. See the following
Block source_resources
. - source
Tag TemplateScratch Source Tag - Source tag. See the following
Block source_tag
.
- template
Scratch stringType - The type of the Template scan. Valid Values:
ResourceImport
orArchitectureReplication
. - description string
- The Description of the Template Scratch.
- execution
Mode string - The execution mode. Valid Values:
Async
orSync
. - logical
Id stringStrategy - Logical ID generation strategy. Valid Values:
LongTypePrefixAndIndexSuffix
,LongTypePrefixAndHashSuffix
andShortTypePrefixAndHashSuffix
. - preference
Parameters TemplateScratch Preference Parameter[] - Priority parameter. See the following
Block preference_parameters
. - source
Resource TemplateGroup Scratch Source Resource Group - Source resource grouping. See the following
Block source_resource_group
. - source
Resources TemplateScratch Source Resource[] - Source resource. See the following
Block source_resources
. - source
Tag TemplateScratch Source Tag - Source tag. See the following
Block source_tag
.
- template_
scratch_ strtype - The type of the Template scan. Valid Values:
ResourceImport
orArchitectureReplication
. - description str
- The Description of the Template Scratch.
- execution_
mode str - The execution mode. Valid Values:
Async
orSync
. - logical_
id_ strstrategy - Logical ID generation strategy. Valid Values:
LongTypePrefixAndIndexSuffix
,LongTypePrefixAndHashSuffix
andShortTypePrefixAndHashSuffix
. - preference_
parameters Sequence[TemplateScratch Preference Parameter Args] - Priority parameter. See the following
Block preference_parameters
. - source_
resource_ Templategroup Scratch Source Resource Group Args - Source resource grouping. See the following
Block source_resource_group
. - source_
resources Sequence[TemplateScratch Source Resource Args] - Source resource. See the following
Block source_resources
. - source_
tag TemplateScratch Source Tag Args - Source tag. See the following
Block source_tag
.
- template
Scratch StringType - The type of the Template scan. Valid Values:
ResourceImport
orArchitectureReplication
. - description String
- The Description of the Template Scratch.
- execution
Mode String - The execution mode. Valid Values:
Async
orSync
. - logical
Id StringStrategy - Logical ID generation strategy. Valid Values:
LongTypePrefixAndIndexSuffix
,LongTypePrefixAndHashSuffix
andShortTypePrefixAndHashSuffix
. - preference
Parameters List<Property Map> - Priority parameter. See the following
Block preference_parameters
. - source
Resource Property MapGroup - Source resource grouping. See the following
Block source_resource_group
. - source
Resources List<Property Map> - Source resource. See the following
Block source_resources
. - source
Tag 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:
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.
- Description string
- The Description of the Template Scratch.
- Execution
Mode string - The execution mode. Valid Values:
Async
orSync
. - Logical
Id stringStrategy - Logical ID generation strategy. Valid Values:
LongTypePrefixAndIndexSuffix
,LongTypePrefixAndHashSuffix
andShortTypePrefixAndHashSuffix
. - Preference
Parameters List<Pulumi.Ali Cloud. Ros. Inputs. Template Scratch Preference Parameter> - Priority parameter. See the following
Block preference_parameters
. - Source
Resource Pulumi.Group Ali Cloud. Ros. Inputs. Template Scratch Source Resource Group - Source resource grouping. See the following
Block source_resource_group
. - Source
Resources List<Pulumi.Ali Cloud. Ros. Inputs. Template Scratch Source Resource> - Source resource. See the following
Block source_resources
. - Source
Tag Pulumi.Ali Cloud. Ros. Inputs. Template Scratch Source Tag - Source tag. See the following
Block source_tag
. - Status string
- The status of the resource.
- Template
Scratch stringType - The type of the Template scan. Valid Values:
ResourceImport
orArchitectureReplication
.
- Description string
- The Description of the Template Scratch.
- Execution
Mode string - The execution mode. Valid Values:
Async
orSync
. - Logical
Id stringStrategy - Logical ID generation strategy. Valid Values:
LongTypePrefixAndIndexSuffix
,LongTypePrefixAndHashSuffix
andShortTypePrefixAndHashSuffix
. - Preference
Parameters []TemplateScratch Preference Parameter Args - Priority parameter. See the following
Block preference_parameters
. - Source
Resource TemplateGroup Scratch Source Resource Group Args - Source resource grouping. See the following
Block source_resource_group
. - Source
Resources []TemplateScratch Source Resource Args - Source resource. See the following
Block source_resources
. - Source
Tag TemplateScratch Source Tag Args - Source tag. See the following
Block source_tag
. - Status string
- The status of the resource.
- Template
Scratch stringType - The type of the Template scan. Valid Values:
ResourceImport
orArchitectureReplication
.
- description String
- The Description of the Template Scratch.
- execution
Mode String - The execution mode. Valid Values:
Async
orSync
. - logical
Id StringStrategy - Logical ID generation strategy. Valid Values:
LongTypePrefixAndIndexSuffix
,LongTypePrefixAndHashSuffix
andShortTypePrefixAndHashSuffix
. - preference
Parameters List<TemplateScratch Preference Parameter> - Priority parameter. See the following
Block preference_parameters
. - source
Resource TemplateGroup Scratch Source Resource Group - Source resource grouping. See the following
Block source_resource_group
. - source
Resources List<TemplateScratch Source Resource> - Source resource. See the following
Block source_resources
. - source
Tag TemplateScratch Source Tag - Source tag. See the following
Block source_tag
. - status String
- The status of the resource.
- template
Scratch StringType - The type of the Template scan. Valid Values:
ResourceImport
orArchitectureReplication
.
- description string
- The Description of the Template Scratch.
- execution
Mode string - The execution mode. Valid Values:
Async
orSync
. - logical
Id stringStrategy - Logical ID generation strategy. Valid Values:
LongTypePrefixAndIndexSuffix
,LongTypePrefixAndHashSuffix
andShortTypePrefixAndHashSuffix
. - preference
Parameters TemplateScratch Preference Parameter[] - Priority parameter. See the following
Block preference_parameters
. - source
Resource TemplateGroup Scratch Source Resource Group - Source resource grouping. See the following
Block source_resource_group
. - source
Resources TemplateScratch Source Resource[] - Source resource. See the following
Block source_resources
. - source
Tag TemplateScratch Source Tag - Source tag. See the following
Block source_tag
. - status string
- The status of the resource.
- template
Scratch stringType - The type of the Template scan. Valid Values:
ResourceImport
orArchitectureReplication
.
- description str
- The Description of the Template Scratch.
- execution_
mode str - The execution mode. Valid Values:
Async
orSync
. - logical_
id_ strstrategy - Logical ID generation strategy. Valid Values:
LongTypePrefixAndIndexSuffix
,LongTypePrefixAndHashSuffix
andShortTypePrefixAndHashSuffix
. - preference_
parameters Sequence[TemplateScratch Preference Parameter Args] - Priority parameter. See the following
Block preference_parameters
. - source_
resource_ Templategroup Scratch Source Resource Group Args - Source resource grouping. See the following
Block source_resource_group
. - source_
resources Sequence[TemplateScratch Source Resource Args] - Source resource. See the following
Block source_resources
. - source_
tag TemplateScratch Source Tag Args - Source tag. See the following
Block source_tag
. - status str
- The status of the resource.
- template_
scratch_ strtype - The type of the Template scan. Valid Values:
ResourceImport
orArchitectureReplication
.
- description String
- The Description of the Template Scratch.
- execution
Mode String - The execution mode. Valid Values:
Async
orSync
. - logical
Id StringStrategy - Logical ID generation strategy. Valid Values:
LongTypePrefixAndIndexSuffix
,LongTypePrefixAndHashSuffix
andShortTypePrefixAndHashSuffix
. - preference
Parameters List<Property Map> - Priority parameter. See the following
Block preference_parameters
. - source
Resource Property MapGroup - Source resource grouping. See the following
Block source_resource_group
. - source
Resources List<Property Map> - Source resource. See the following
Block source_resources
. - source
Tag Property Map - Source tag. See the following
Block source_tag
. - status String
- The status of the resource.
- template
Scratch StringType - The type of the Template scan. Valid Values:
ResourceImport
orArchitectureReplication
.
Supporting Types
TemplateScratchPreferenceParameter, TemplateScratchPreferenceParameterArgs
- Parameter
Key string - Priority parameter key. For more information about values, see supplementary instructions for request parameters.
- Parameter
Value string - Priority parameter value. For more information about values, see supplementary instructions for request parameters.
- Parameter
Key string - Priority parameter key. For more information about values, see supplementary instructions for request parameters.
- Parameter
Value string - Priority parameter value. For more information about values, see supplementary instructions for request parameters.
- parameter
Key String - Priority parameter key. For more information about values, see supplementary instructions for request parameters.
- parameter
Value String - Priority parameter value. For more information about values, see supplementary instructions for request parameters.
- parameter
Key string - Priority parameter key. For more information about values, see supplementary instructions for request parameters.
- parameter
Value 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.
- parameter
Key String - Priority parameter key. For more information about values, see supplementary instructions for request parameters.
- parameter
Value String - Priority parameter value. For more information about values, see supplementary instructions for request parameters.
TemplateScratchSourceResource, TemplateScratchSourceResourceArgs
- Resource
Id string - The ID of the Source Resource.
- Resource
Type string - The type of the Source resource.
- Resource
Id string - The ID of the Source Resource.
- Resource
Type string - The type of the Source resource.
- resource
Id String - The ID of the Source Resource.
- resource
Type String - The type of the Source resource.
- resource
Id string - The ID of the Source Resource.
- resource
Type 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.
- resource
Id String - The ID of the Source Resource.
- resource
Type String - The type of the Source resource.
TemplateScratchSourceResourceGroup, TemplateScratchSourceResourceGroupArgs
- Resource
Group stringId - The ID of the Source Resource Group.
- Resource
Type List<string>Filters
- Resource
Group stringId - The ID of the Source Resource Group.
- Resource
Type []stringFilters
- resource
Group StringId - The ID of the Source Resource Group.
- resource
Type List<String>Filters
- resource
Group stringId - The ID of the Source Resource Group.
- resource
Type string[]Filters
- resource_
group_ strid - The ID of the Source Resource Group.
- resource_
type_ Sequence[str]filters
- resource
Group StringId - The ID of the Source Resource Group.
- resource
Type List<String>Filters
TemplateScratchSourceTag, TemplateScratchSourceTagArgs
- Dictionary<string, string>
- Source label. NOTE: A maximum of 10 source labels can be configured.
- Resource
Type List<string>Filters
- map[string]string
- Source label. NOTE: A maximum of 10 source labels can be configured.
- Resource
Type []stringFilters
- Map<String,String>
- Source label. NOTE: A maximum of 10 source labels can be configured.
- resource
Type List<String>Filters
- {[key: string]: string}
- Source label. NOTE: A maximum of 10 source labels can be configured.
- resource
Type string[]Filters
- Mapping[str, str]
- Source label. NOTE: A maximum of 10 source labels can be configured.
- resource_
type_ Sequence[str]filters
- Map<String>
- Source label. NOTE: A maximum of 10 source labels can be configured.
- resource
Type List<String>Filters
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.