fastly.ServiceDictionaryItems
Explore with Pulumi AI
Import
This is an example of the import command being applied to the resource named fastly_service_dictionary_items.items
The resource ID is a combined value of the service_id
and dictionary_id
separated by a forward slash.
$ pulumi import fastly:index/serviceDictionaryItems:ServiceDictionaryItems items xxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxx
If Terraform is already managing remote dictionary items 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_dictionary_items.items
from the Terraform state file.
$ terraform state rm fastly_service_dictionary_items.items
Create ServiceDictionaryItems Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceDictionaryItems(name: string, args: ServiceDictionaryItemsArgs, opts?: CustomResourceOptions);
@overload
def ServiceDictionaryItems(resource_name: str,
args: ServiceDictionaryItemsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceDictionaryItems(resource_name: str,
opts: Optional[ResourceOptions] = None,
dictionary_id: Optional[str] = None,
service_id: Optional[str] = None,
items: Optional[Mapping[str, str]] = None,
manage_items: Optional[bool] = None)
func NewServiceDictionaryItems(ctx *Context, name string, args ServiceDictionaryItemsArgs, opts ...ResourceOption) (*ServiceDictionaryItems, error)
public ServiceDictionaryItems(string name, ServiceDictionaryItemsArgs args, CustomResourceOptions? opts = null)
public ServiceDictionaryItems(String name, ServiceDictionaryItemsArgs args)
public ServiceDictionaryItems(String name, ServiceDictionaryItemsArgs args, CustomResourceOptions options)
type: fastly:ServiceDictionaryItems
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 ServiceDictionaryItemsArgs
- 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 ServiceDictionaryItemsArgs
- 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 ServiceDictionaryItemsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceDictionaryItemsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceDictionaryItemsArgs
- 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 serviceDictionaryItemsResource = new Fastly.ServiceDictionaryItems("serviceDictionaryItemsResource", new()
{
DictionaryId = "string",
ServiceId = "string",
Items =
{
{ "string", "string" },
},
ManageItems = false,
});
example, err := fastly.NewServiceDictionaryItems(ctx, "serviceDictionaryItemsResource", &fastly.ServiceDictionaryItemsArgs{
DictionaryId: pulumi.String("string"),
ServiceId: pulumi.String("string"),
Items: pulumi.StringMap{
"string": pulumi.String("string"),
},
ManageItems: pulumi.Bool(false),
})
var serviceDictionaryItemsResource = new ServiceDictionaryItems("serviceDictionaryItemsResource", ServiceDictionaryItemsArgs.builder()
.dictionaryId("string")
.serviceId("string")
.items(Map.of("string", "string"))
.manageItems(false)
.build());
service_dictionary_items_resource = fastly.ServiceDictionaryItems("serviceDictionaryItemsResource",
dictionary_id="string",
service_id="string",
items={
"string": "string",
},
manage_items=False)
const serviceDictionaryItemsResource = new fastly.ServiceDictionaryItems("serviceDictionaryItemsResource", {
dictionaryId: "string",
serviceId: "string",
items: {
string: "string",
},
manageItems: false,
});
type: fastly:ServiceDictionaryItems
properties:
dictionaryId: string
items:
string: string
manageItems: false
serviceId: string
ServiceDictionaryItems 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 ServiceDictionaryItems resource accepts the following input properties:
- Dictionary
Id string - The ID of the dictionary that the items belong to
- Service
Id string - The ID of the service that the dictionary belongs to
- Items Dictionary<string, string>
- A map representing an entry in the dictionary, (key/value)
- Manage
Items bool - Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
- Dictionary
Id string - The ID of the dictionary that the items belong to
- Service
Id string - The ID of the service that the dictionary belongs to
- Items map[string]string
- A map representing an entry in the dictionary, (key/value)
- Manage
Items bool - Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
- dictionary
Id String - The ID of the dictionary that the items belong to
- service
Id String - The ID of the service that the dictionary belongs to
- items Map<String,String>
- A map representing an entry in the dictionary, (key/value)
- manage
Items Boolean - Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
- dictionary
Id string - The ID of the dictionary that the items belong to
- service
Id string - The ID of the service that the dictionary belongs to
- items {[key: string]: string}
- A map representing an entry in the dictionary, (key/value)
- manage
Items boolean - Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
- dictionary_
id str - The ID of the dictionary that the items belong to
- service_
id str - The ID of the service that the dictionary belongs to
- items Mapping[str, str]
- A map representing an entry in the dictionary, (key/value)
- manage_
items bool - Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
- dictionary
Id String - The ID of the dictionary that the items belong to
- service
Id String - The ID of the service that the dictionary belongs to
- items Map<String>
- A map representing an entry in the dictionary, (key/value)
- manage
Items Boolean - Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceDictionaryItems 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 ServiceDictionaryItems Resource
Get an existing ServiceDictionaryItems 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?: ServiceDictionaryItemsState, opts?: CustomResourceOptions): ServiceDictionaryItems
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dictionary_id: Optional[str] = None,
items: Optional[Mapping[str, str]] = None,
manage_items: Optional[bool] = None,
service_id: Optional[str] = None) -> ServiceDictionaryItems
func GetServiceDictionaryItems(ctx *Context, name string, id IDInput, state *ServiceDictionaryItemsState, opts ...ResourceOption) (*ServiceDictionaryItems, error)
public static ServiceDictionaryItems Get(string name, Input<string> id, ServiceDictionaryItemsState? state, CustomResourceOptions? opts = null)
public static ServiceDictionaryItems get(String name, Output<String> id, ServiceDictionaryItemsState 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.
- Dictionary
Id string - The ID of the dictionary that the items belong to
- Items Dictionary<string, string>
- A map representing an entry in the dictionary, (key/value)
- Manage
Items bool - Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
- Service
Id string - The ID of the service that the dictionary belongs to
- Dictionary
Id string - The ID of the dictionary that the items belong to
- Items map[string]string
- A map representing an entry in the dictionary, (key/value)
- Manage
Items bool - Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
- Service
Id string - The ID of the service that the dictionary belongs to
- dictionary
Id String - The ID of the dictionary that the items belong to
- items Map<String,String>
- A map representing an entry in the dictionary, (key/value)
- manage
Items Boolean - Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
- service
Id String - The ID of the service that the dictionary belongs to
- dictionary
Id string - The ID of the dictionary that the items belong to
- items {[key: string]: string}
- A map representing an entry in the dictionary, (key/value)
- manage
Items boolean - Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
- service
Id string - The ID of the service that the dictionary belongs to
- dictionary_
id str - The ID of the dictionary that the items belong to
- items Mapping[str, str]
- A map representing an entry in the dictionary, (key/value)
- manage_
items bool - Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
- service_
id str - The ID of the service that the dictionary belongs to
- dictionary
Id String - The ID of the dictionary that the items belong to
- items Map<String>
- A map representing an entry in the dictionary, (key/value)
- manage
Items Boolean - Whether to reapply changes if the state of the items drifts, i.e. if items are managed externally
- service
Id String - The ID of the service that the dictionary belongs to
Package Details
- Repository
- Fastly pulumi/pulumi-fastly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fastly
Terraform Provider.