1. Packages
  2. Fastly Provider
  3. API Docs
  4. ServiceACLEntries
Fastly v9.0.0 published on Tuesday, Apr 8, 2025 by Pulumi

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
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. ServiceACLEntriesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. ServiceACLEntriesArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ServiceACLEntriesArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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,
});
Copy
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),
})
Copy
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());
Copy
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)
Copy
const serviceACLEntriesResource = new fastly.ServiceACLEntries("serviceACLEntriesResource", {
    aclId: "string",
    serviceId: "string",
    entries: [{
        ip: "string",
        comment: "string",
        id: "string",
        negated: false,
        subnet: "string",
    }],
    manageEntries: false,
});
Copy
type: fastly:ServiceACLEntries
properties:
    aclId: string
    entries:
        - comment: string
          id: string
          ip: string
          negated: false
          subnet: string
    manageEntries: false
    serviceId: string
Copy

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:

AclId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the ACL that the items belong to
ServiceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Service that the ACL belongs to
Entries List<ServiceACLEntriesEntry>
ACL Entries
ManageEntries bool
Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
AclId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the ACL that the items belong to
ServiceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Service that the ACL belongs to
Entries []ServiceACLEntriesEntryArgs
ACL Entries
ManageEntries bool
Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
aclId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the ACL that the items belong to
serviceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Service that the ACL belongs to
entries List<ServiceACLEntriesEntry>
ACL Entries
manageEntries Boolean
Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
aclId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the ACL that the items belong to
serviceId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Service that the ACL belongs to
entries ServiceACLEntriesEntry[]
ACL Entries
manageEntries boolean
Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
acl_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the ACL that the items belong to
service_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the Service that the ACL belongs to
entries Sequence[ServiceACLEntriesEntryArgs]
ACL Entries
manage_entries bool
Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
aclId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the ACL that the items belong to
serviceId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Service that the ACL belongs to
entries List<Property Map>
ACL Entries
manageEntries 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)
resources:  _:    type: fastly:ServiceACLEntries    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AclId Changes to this property will trigger replacement. string
The ID of the ACL that the items belong to
Entries List<ServiceACLEntriesEntry>
ACL Entries
ManageEntries bool
Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
ServiceId Changes to this property will trigger replacement. string
The ID of the Service that the ACL belongs to
AclId Changes to this property will trigger replacement. string
The ID of the ACL that the items belong to
Entries []ServiceACLEntriesEntryArgs
ACL Entries
ManageEntries bool
Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
ServiceId Changes to this property will trigger replacement. string
The ID of the Service that the ACL belongs to
aclId Changes to this property will trigger replacement. String
The ID of the ACL that the items belong to
entries List<ServiceACLEntriesEntry>
ACL Entries
manageEntries Boolean
Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
serviceId Changes to this property will trigger replacement. String
The ID of the Service that the ACL belongs to
aclId Changes to this property will trigger replacement. string
The ID of the ACL that the items belong to
entries ServiceACLEntriesEntry[]
ACL Entries
manageEntries boolean
Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
serviceId Changes to this property will trigger replacement. string
The ID of the Service that the ACL belongs to
acl_id Changes to this property will trigger replacement. str
The ID of the ACL that the items belong to
entries Sequence[ServiceACLEntriesEntryArgs]
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 Changes to this property will trigger replacement. str
The ID of the Service that the ACL belongs to
aclId Changes to this property will trigger replacement. String
The ID of the ACL that the items belong to
entries List<Property Map>
ACL Entries
manageEntries Boolean
Whether to reapply changes if the state of the entries drifts, i.e. if entries are managed externally
serviceId Changes to this property will trigger replacement. String
The ID of the Service that the ACL belongs to

Supporting Types

ServiceACLEntriesEntry
, ServiceACLEntriesEntryArgs

Ip This property is required. string
An IP address that is the focus for the ACL
Comment string
A personal freeform descriptive note
Id string
The unique ID of the entry
Negated bool
A boolean that will negate the match if true
Subnet string
An optional subnet mask applied to the IP address
Ip This property is required. string
An IP address that is the focus for the ACL
Comment string
A personal freeform descriptive note
Id string
The unique ID of the entry
Negated bool
A boolean that will negate the match if true
Subnet string
An optional subnet mask applied to the IP address
ip This property is required. String
An IP address that is the focus for the ACL
comment String
A personal freeform descriptive note
id String
The unique ID of the entry
negated Boolean
A boolean that will negate the match if true
subnet String
An optional subnet mask applied to the IP address
ip This property is required. string
An IP address that is the focus for the ACL
comment string
A personal freeform descriptive note
id string
The unique ID of the entry
negated boolean
A boolean that will negate the match if true
subnet string
An optional subnet mask applied to the IP address
ip This property is required. str
An IP address that is the focus for the ACL
comment str
A personal freeform descriptive note
id str
The unique ID of the entry
negated bool
A boolean that will negate the match if true
subnet str
An optional subnet mask applied to the IP address
ip This property is required. String
An IP address that is the focus for the ACL
comment String
A personal freeform descriptive note
id String
The unique ID of the entry
negated Boolean
A boolean that will negate the match if true
subnet String
An optional subnet mask applied to the IP address

Package Details

Repository
Fastly pulumi/pulumi-fastly
License
Apache-2.0
Notes
This Pulumi package is based on the fastly Terraform Provider.