ServiceDynamicSnippetContentv1
Defines content that represents blocks of VCL logic that is inserted into your service. This resource will populate the content of a dynamic snippet and allow it to be manged without the creation of a new service verison.
Create a ServiceDynamicSnippetContentv1 Resource
new ServiceDynamicSnippetContentv1(name: string, args: ServiceDynamicSnippetContentv1Args, opts?: CustomResourceOptions);def ServiceDynamicSnippetContentv1(resource_name, opts=None, content=None, service_id=None, snippet_id=None, __props__=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 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:
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): ServiceDynamicSnippetContentv1static get(resource_name, id, opts=None, content=None, service_id=None, snippet_id=None, __props__=None);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 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
fastlyTerraform Provider.