Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

ServiceDynamicSnippetContentv1

Import

This is an example of the import command being applied to the resource named fastly_service_dynamic_snippet_content_v1.content The resource ID is a combined value of the service_id and snippet_id separated by a forward slash.

 $ pulumi import fastly:index/serviceDynamicSnippetContentv1:ServiceDynamicSnippetContentv1 content xxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxx

If Terraform is already managing remote content against a resource being imported then the user will be asked to remove it from the existing Terraform state. The following is an example of the Terraform state command to remove the resource named fastly_service_dynamic_snippet_content_v1.content from the Terraform state file. $ terraform state rm fastly_service_dynamic_snippet_content_v1.content

Create a ServiceDynamicSnippetContentv1 Resource

new ServiceDynamicSnippetContentv1(name: string, args: ServiceDynamicSnippetContentv1Args, opts?: CustomResourceOptions);
def ServiceDynamicSnippetContentv1(resource_name: str, opts: Optional[ResourceOptions] = None, content: Optional[str] = None, service_id: Optional[str] = None, snippet_id: Optional[str] = None)
func NewServiceDynamicSnippetContentv1(ctx *Context, name string, args ServiceDynamicSnippetContentv1Args, opts ...ResourceOption) (*ServiceDynamicSnippetContentv1, error)
public ServiceDynamicSnippetContentv1(string name, ServiceDynamicSnippetContentv1Args args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ServiceDynamicSnippetContentv1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ServiceDynamicSnippetContentv1Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ServiceDynamicSnippetContentv1Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ServiceDynamicSnippetContentv1 Resource Properties

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

Inputs

The ServiceDynamicSnippetContentv1 resource accepts the following input properties:

Content string

The VCL code that specifies exactly what the snippet does.

ServiceId string

The ID of the service that the dynamic snippet belongs to

SnippetId string

The ID of the dynamic snippet that the content belong to

Content string

The VCL code that specifies exactly what the snippet does.

ServiceId string

The ID of the service that the dynamic snippet belongs to

SnippetId string

The ID of the dynamic snippet that the content belong to

content string

The VCL code that specifies exactly what the snippet does.

serviceId string

The ID of the service that the dynamic snippet belongs to

snippetId string

The ID of the dynamic snippet that the content belong to

content str

The VCL code that specifies exactly what the snippet does.

service_id str

The ID of the service that the dynamic snippet belongs to

snippet_id str

The ID of the dynamic snippet that the content belong to

Outputs

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

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

Look up an Existing ServiceDynamicSnippetContentv1 Resource

Get an existing ServiceDynamicSnippetContentv1 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?: ServiceDynamicSnippetContentv1State, opts?: CustomResourceOptions): ServiceDynamicSnippetContentv1
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, content: Optional[str] = None, service_id: Optional[str] = None, snippet_id: Optional[str] = None) -> ServiceDynamicSnippetContentv1
func GetServiceDynamicSnippetContentv1(ctx *Context, name string, id IDInput, state *ServiceDynamicSnippetContentv1State, opts ...ResourceOption) (*ServiceDynamicSnippetContentv1, error)
public static ServiceDynamicSnippetContentv1 Get(string name, Input<string> id, ServiceDynamicSnippetContentv1State? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

Content string

The VCL code that specifies exactly what the snippet does.

ServiceId string

The ID of the service that the dynamic snippet belongs to

SnippetId string

The ID of the dynamic snippet that the content belong to

Content string

The VCL code that specifies exactly what the snippet does.

ServiceId string

The ID of the service that the dynamic snippet belongs to

SnippetId string

The ID of the dynamic snippet that the content belong to

content string

The VCL code that specifies exactly what the snippet does.

serviceId string

The ID of the service that the dynamic snippet belongs to

snippetId string

The ID of the dynamic snippet that the content belong to

content str

The VCL code that specifies exactly what the snippet does.

service_id str

The ID of the service that the dynamic snippet belongs to

snippet_id str

The ID of the dynamic snippet that the content belong to

Package Details

Repository
https://github.com/pulumi/pulumi-fastly
License
Apache-2.0
Notes
This Pulumi package is based on the fastly Terraform Provider.