1. Packages
  2. Fastly Provider
  3. API Docs
  4. ServiceACLEntries
Fastly v8.13.0 published on Wednesday, Nov 13, 2024 by Pulumi

fastly.ServiceACLEntries

Explore with Pulumi AI

fastly logo
Fastly v8.13.0 published on Wednesday, Nov 13, 2024 by Pulumi

    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:

    AclId string
    The ID of the ACL that the items belong to
    ServiceId 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 string
    The ID of the ACL that the items belong to
    ServiceId 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 String
    The ID of the ACL that the items belong to
    serviceId 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 string
    The ID of the ACL that the items belong to
    serviceId 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 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[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 String
    The ID of the ACL that the items belong to
    serviceId 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)
    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.
    The following state arguments are supported:
    AclId 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 string
    The ID of the Service that the ACL belongs to
    AclId 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 string
    The ID of the Service that the ACL belongs to
    aclId 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 String
    The ID of the Service that the ACL belongs to
    aclId 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 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[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 str
    The ID of the Service that the ACL belongs to
    aclId 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 String
    The ID of the Service that the ACL belongs to

    Supporting Types

    ServiceACLEntriesEntry, ServiceACLEntriesEntryArgs

    Ip 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 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 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 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 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 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.
    fastly logo
    Fastly v8.13.0 published on Wednesday, Nov 13, 2024 by Pulumi