fastly.ServiceDynamicSnippetContent
Explore with Pulumi AI
Import
This is an example of the import command being applied to the resource named fastly_service_dynamic_snippet_content.content
The resource ID is a combined value of the service_id
and snippet_id
separated by a forward slash.
$ pulumi import fastly:index/serviceDynamicSnippetContent:ServiceDynamicSnippetContent 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.content
from the Terraform state file.
$ terraform state rm fastly_service_dynamic_snippet_content.content
Create ServiceDynamicSnippetContent Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceDynamicSnippetContent(name: string, args: ServiceDynamicSnippetContentArgs, opts?: CustomResourceOptions);
@overload
def ServiceDynamicSnippetContent(resource_name: str,
args: ServiceDynamicSnippetContentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceDynamicSnippetContent(resource_name: str,
opts: Optional[ResourceOptions] = None,
content: Optional[str] = None,
service_id: Optional[str] = None,
snippet_id: Optional[str] = None,
manage_snippets: Optional[bool] = None)
func NewServiceDynamicSnippetContent(ctx *Context, name string, args ServiceDynamicSnippetContentArgs, opts ...ResourceOption) (*ServiceDynamicSnippetContent, error)
public ServiceDynamicSnippetContent(string name, ServiceDynamicSnippetContentArgs args, CustomResourceOptions? opts = null)
public ServiceDynamicSnippetContent(String name, ServiceDynamicSnippetContentArgs args)
public ServiceDynamicSnippetContent(String name, ServiceDynamicSnippetContentArgs args, CustomResourceOptions options)
type: fastly:ServiceDynamicSnippetContent
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 ServiceDynamicSnippetContentArgs
- 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 ServiceDynamicSnippetContentArgs
- 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 ServiceDynamicSnippetContentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceDynamicSnippetContentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceDynamicSnippetContentArgs
- 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 serviceDynamicSnippetContentResource = new Fastly.ServiceDynamicSnippetContent("serviceDynamicSnippetContentResource", new()
{
Content = "string",
ServiceId = "string",
SnippetId = "string",
ManageSnippets = false,
});
example, err := fastly.NewServiceDynamicSnippetContent(ctx, "serviceDynamicSnippetContentResource", &fastly.ServiceDynamicSnippetContentArgs{
Content: pulumi.String("string"),
ServiceId: pulumi.String("string"),
SnippetId: pulumi.String("string"),
ManageSnippets: pulumi.Bool(false),
})
var serviceDynamicSnippetContentResource = new ServiceDynamicSnippetContent("serviceDynamicSnippetContentResource", ServiceDynamicSnippetContentArgs.builder()
.content("string")
.serviceId("string")
.snippetId("string")
.manageSnippets(false)
.build());
service_dynamic_snippet_content_resource = fastly.ServiceDynamicSnippetContent("serviceDynamicSnippetContentResource",
content="string",
service_id="string",
snippet_id="string",
manage_snippets=False)
const serviceDynamicSnippetContentResource = new fastly.ServiceDynamicSnippetContent("serviceDynamicSnippetContentResource", {
content: "string",
serviceId: "string",
snippetId: "string",
manageSnippets: false,
});
type: fastly:ServiceDynamicSnippetContent
properties:
content: string
manageSnippets: false
serviceId: string
snippetId: string
ServiceDynamicSnippetContent 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 ServiceDynamicSnippetContent resource accepts the following input properties:
- Content string
- The VCL code that specifies exactly what the snippet does
- Service
Id string - The ID of the service that the dynamic snippet belongs to
- Snippet
Id string - The ID of the dynamic snippet that the content belong to
- Manage
Snippets bool - Whether to reapply changes if the state of the snippets drifts, i.e. if snippets are managed externally
- Content string
- The VCL code that specifies exactly what the snippet does
- Service
Id string - The ID of the service that the dynamic snippet belongs to
- Snippet
Id string - The ID of the dynamic snippet that the content belong to
- Manage
Snippets bool - Whether to reapply changes if the state of the snippets drifts, i.e. if snippets are managed externally
- content String
- The VCL code that specifies exactly what the snippet does
- service
Id String - The ID of the service that the dynamic snippet belongs to
- snippet
Id String - The ID of the dynamic snippet that the content belong to
- manage
Snippets Boolean - Whether to reapply changes if the state of the snippets drifts, i.e. if snippets are managed externally
- content string
- The VCL code that specifies exactly what the snippet does
- service
Id string - The ID of the service that the dynamic snippet belongs to
- snippet
Id string - The ID of the dynamic snippet that the content belong to
- manage
Snippets boolean - Whether to reapply changes if the state of the snippets drifts, i.e. if snippets are managed externally
- 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
- manage_
snippets bool - Whether to reapply changes if the state of the snippets drifts, i.e. if snippets are managed externally
- content String
- The VCL code that specifies exactly what the snippet does
- service
Id String - The ID of the service that the dynamic snippet belongs to
- snippet
Id String - The ID of the dynamic snippet that the content belong to
- manage
Snippets Boolean - Whether to reapply changes if the state of the snippets drifts, i.e. if snippets are managed externally
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceDynamicSnippetContent 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 string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ServiceDynamicSnippetContent Resource
Get an existing ServiceDynamicSnippetContent 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?: ServiceDynamicSnippetContentState, opts?: CustomResourceOptions): ServiceDynamicSnippetContent
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
content: Optional[str] = None,
manage_snippets: Optional[bool] = None,
service_id: Optional[str] = None,
snippet_id: Optional[str] = None) -> ServiceDynamicSnippetContent
func GetServiceDynamicSnippetContent(ctx *Context, name string, id IDInput, state *ServiceDynamicSnippetContentState, opts ...ResourceOption) (*ServiceDynamicSnippetContent, error)
public static ServiceDynamicSnippetContent Get(string name, Input<string> id, ServiceDynamicSnippetContentState? state, CustomResourceOptions? opts = null)
public static ServiceDynamicSnippetContent get(String name, Output<String> id, ServiceDynamicSnippetContentState 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.
- Content string
- The VCL code that specifies exactly what the snippet does
- Manage
Snippets bool - Whether to reapply changes if the state of the snippets drifts, i.e. if snippets are managed externally
- Service
Id string - The ID of the service that the dynamic snippet belongs to
- Snippet
Id string - The ID of the dynamic snippet that the content belong to
- Content string
- The VCL code that specifies exactly what the snippet does
- Manage
Snippets bool - Whether to reapply changes if the state of the snippets drifts, i.e. if snippets are managed externally
- Service
Id string - The ID of the service that the dynamic snippet belongs to
- Snippet
Id string - The ID of the dynamic snippet that the content belong to
- content String
- The VCL code that specifies exactly what the snippet does
- manage
Snippets Boolean - Whether to reapply changes if the state of the snippets drifts, i.e. if snippets are managed externally
- service
Id String - The ID of the service that the dynamic snippet belongs to
- snippet
Id String - The ID of the dynamic snippet that the content belong to
- content string
- The VCL code that specifies exactly what the snippet does
- manage
Snippets boolean - Whether to reapply changes if the state of the snippets drifts, i.e. if snippets are managed externally
- service
Id string - The ID of the service that the dynamic snippet belongs to
- snippet
Id string - The ID of the dynamic snippet that the content belong to
- content str
- The VCL code that specifies exactly what the snippet does
- manage_
snippets bool - Whether to reapply changes if the state of the snippets drifts, i.e. if snippets are managed externally
- 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
- content String
- The VCL code that specifies exactly what the snippet does
- manage
Snippets Boolean - Whether to reapply changes if the state of the snippets drifts, i.e. if snippets are managed externally
- service
Id String - The ID of the service that the dynamic snippet belongs to
- snippet
Id String - The ID of the dynamic snippet that the content belong to
Package Details
- Repository
- Fastly pulumi/pulumi-fastly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fastly
Terraform Provider.