fastly.ServiceACLEntries
Explore with Pulumi AI
Import
This is an example of the import command being applied to the resource named fastly_service_acl_entries.entries
The resource ID is a combined value of the service_id
and acl_id
separated by a forward slash.
$ pulumi import fastly:index/serviceACLEntries:ServiceACLEntries entries xxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxx
If Terraform is already managing remote acl entries 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_acl_entries.entries
from the Terraform state file.
$ terraform state rm fastly_service_acl_entries.entries
Create ServiceACLEntries Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceACLEntries(name: string, args: ServiceACLEntriesArgs, opts?: CustomResourceOptions);
@overload
def ServiceACLEntries(resource_name: str,
args: ServiceACLEntriesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceACLEntries(resource_name: str,
opts: Optional[ResourceOptions] = None,
acl_id: Optional[str] = None,
service_id: Optional[str] = None,
entries: Optional[Sequence[ServiceACLEntriesEntryArgs]] = None,
manage_entries: Optional[bool] = None)
func NewServiceACLEntries(ctx *Context, name string, args ServiceACLEntriesArgs, opts ...ResourceOption) (*ServiceACLEntries, error)
public ServiceACLEntries(string name, ServiceACLEntriesArgs args, CustomResourceOptions? opts = null)
public ServiceACLEntries(String name, ServiceACLEntriesArgs args)
public ServiceACLEntries(String name, ServiceACLEntriesArgs args, CustomResourceOptions options)
type: fastly:ServiceACLEntries
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 ServiceACLEntriesArgs
- 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 ServiceACLEntriesArgs
- 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 ServiceACLEntriesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceACLEntriesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceACLEntriesArgs
- 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 serviceACLEntriesResource = new Fastly.ServiceACLEntries("serviceACLEntriesResource", new()
{
AclId = "string",
ServiceId = "string",
Entries = new[]
{
new Fastly.Inputs.ServiceACLEntriesEntryArgs
{
Ip = "string",
Comment = "string",
Id = "string",
Negated = false,
Subnet = "string",
},
},
ManageEntries = false,
});
example, err := fastly.NewServiceACLEntries(ctx, "serviceACLEntriesResource", &fastly.ServiceACLEntriesArgs{
AclId: pulumi.String("string"),
ServiceId: pulumi.String("string"),
Entries: fastly.ServiceACLEntriesEntryArray{
&fastly.ServiceACLEntriesEntryArgs{
Ip: pulumi.String("string"),
Comment: pulumi.String("string"),
Id: pulumi.String("string"),
Negated: pulumi.Bool(false),
Subnet: pulumi.String("string"),
},
},
ManageEntries: pulumi.Bool(false),
})
var serviceACLEntriesResource = new ServiceACLEntries("serviceACLEntriesResource", ServiceACLEntriesArgs.builder()
.aclId("string")
.serviceId("string")
.entries(ServiceACLEntriesEntryArgs.builder()
.ip("string")
.comment("string")
.id("string")
.negated(false)
.subnet("string")
.build())
.manageEntries(false)
.build());
service_acl_entries_resource = fastly.ServiceACLEntries("serviceACLEntriesResource",
acl_id="string",
service_id="string",
entries=[{
"ip": "string",
"comment": "string",
"id": "string",
"negated": False,
"subnet": "string",
}],
manage_entries=False)
const serviceACLEntriesResource = new fastly.ServiceACLEntries("serviceACLEntriesResource", {
aclId: "string",
serviceId: "string",
entries: [{
ip: "string",
comment: "string",
id: "string",
negated: false,
subnet: "string",
}],
manageEntries: false,
});
type: fastly:ServiceACLEntries
properties:
aclId: string
entries:
- comment: string
id: string
ip: string
negated: false
subnet: string
manageEntries: false
serviceId: string
ServiceACLEntries Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ServiceACLEntries resource accepts the following input properties:
- Acl
Id string - The ID of the ACL that the items belong to
- Service
Id string - The ID of the Service that the ACL belongs to
- Entries
List<Service
ACLEntries Entry> - ACL Entries
- Manage
Entries bool - Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
- Acl
Id string - The ID of the ACL that the items belong to
- Service
Id string - The ID of the Service that the ACL belongs to
- Entries
[]Service
ACLEntries Entry Args - ACL Entries
- Manage
Entries bool - Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
- acl
Id String - The ID of the ACL that the items belong to
- service
Id String - The ID of the Service that the ACL belongs to
- entries
List<Service
ACLEntries Entry> - ACL Entries
- manage
Entries Boolean - Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
- acl
Id string - The ID of the ACL that the items belong to
- service
Id string - The ID of the Service that the ACL belongs to
- entries
Service
ACLEntries Entry[] - ACL Entries
- manage
Entries boolean - Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
- acl_
id str - The ID of the ACL that the items belong to
- service_
id str - The ID of the Service that the ACL belongs to
- entries
Sequence[Service
ACLEntries Entry Args] - ACL Entries
- manage_
entries bool - Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
- acl
Id String - The ID of the ACL that the items belong to
- service
Id String - The ID of the Service that the ACL belongs to
- entries List<Property Map>
- ACL Entries
- manage
Entries Boolean - Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceACLEntries 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 ServiceACLEntries Resource
Get an existing ServiceACLEntries 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?: ServiceACLEntriesState, opts?: CustomResourceOptions): ServiceACLEntries
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acl_id: Optional[str] = None,
entries: Optional[Sequence[ServiceACLEntriesEntryArgs]] = None,
manage_entries: Optional[bool] = None,
service_id: Optional[str] = None) -> ServiceACLEntries
func GetServiceACLEntries(ctx *Context, name string, id IDInput, state *ServiceACLEntriesState, opts ...ResourceOption) (*ServiceACLEntries, error)
public static ServiceACLEntries Get(string name, Input<string> id, ServiceACLEntriesState? state, CustomResourceOptions? opts = null)
public static ServiceACLEntries get(String name, Output<String> id, ServiceACLEntriesState 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.
- Acl
Id string - The ID of the ACL that the items belong to
- Entries
List<Service
ACLEntries Entry> - ACL Entries
- Manage
Entries bool - Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
- Service
Id string - The ID of the Service that the ACL belongs to
- Acl
Id string - The ID of the ACL that the items belong to
- Entries
[]Service
ACLEntries Entry Args - ACL Entries
- Manage
Entries bool - Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
- Service
Id string - The ID of the Service that the ACL belongs to
- acl
Id String - The ID of the ACL that the items belong to
- entries
List<Service
ACLEntries Entry> - ACL Entries
- manage
Entries Boolean - Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
- service
Id String - The ID of the Service that the ACL belongs to
- acl
Id string - The ID of the ACL that the items belong to
- entries
Service
ACLEntries Entry[] - ACL Entries
- manage
Entries boolean - Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
- service
Id string - The ID of the Service that the ACL belongs to
- acl_
id str - The ID of the ACL that the items belong to
- entries
Sequence[Service
ACLEntries Entry Args] - ACL Entries
- manage_
entries bool - Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
- service_
id str - The ID of the Service that the ACL belongs to
- acl
Id String - The ID of the ACL that the items belong to
- entries List<Property Map>
- ACL Entries
- manage
Entries Boolean - Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
- service
Id String - The ID of the Service that the ACL belongs to
Supporting Types
ServiceACLEntriesEntry, ServiceACLEntriesEntryArgs
Package Details
- Repository
- Fastly pulumi/pulumi-fastly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fastly
Terraform Provider.