Resource for managing a CloudFront Anycast IP List.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.cloudfront.AnycastIpList("example", {
name: "example-list",
ipCount: 21,
});
import pulumi
import pulumi_aws as aws
example = aws.cloudfront.AnycastIpList("example",
name="example-list",
ip_count=21)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/cloudfront"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudfront.NewAnycastIpList(ctx, "example", &cloudfront.AnycastIpListArgs{
Name: pulumi.String("example-list"),
IpCount: pulumi.Int(21),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.CloudFront.AnycastIpList("example", new()
{
Name = "example-list",
IpCount = 21,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudfront.AnycastIpList;
import com.pulumi.aws.cloudfront.AnycastIpListArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new AnycastIpList("example", AnycastIpListArgs.builder()
.name("example-list")
.ipCount(21)
.build());
}
}
resources:
example:
type: aws:cloudfront:AnycastIpList
properties:
name: example-list
ipCount: 21
Create AnycastIpList Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AnycastIpList(name: string, args: AnycastIpListArgs, opts?: CustomResourceOptions);@overload
def AnycastIpList(resource_name: str,
args: AnycastIpListArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AnycastIpList(resource_name: str,
opts: Optional[ResourceOptions] = None,
ip_count: Optional[int] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[AnycastIpListTimeoutsArgs] = None)func NewAnycastIpList(ctx *Context, name string, args AnycastIpListArgs, opts ...ResourceOption) (*AnycastIpList, error)public AnycastIpList(string name, AnycastIpListArgs args, CustomResourceOptions? opts = null)
public AnycastIpList(String name, AnycastIpListArgs args)
public AnycastIpList(String name, AnycastIpListArgs args, CustomResourceOptions options)
type: aws:cloudfront:AnycastIpList
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 AnycastIpListArgs
- 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 AnycastIpListArgs
- 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 AnycastIpListArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AnycastIpListArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AnycastIpListArgs
- 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 anycastIpListResource = new Aws.CloudFront.AnycastIpList("anycastIpListResource", new()
{
IpCount = 0,
Name = "string",
Tags =
{
{ "string", "string" },
},
Timeouts = new Aws.CloudFront.Inputs.AnycastIpListTimeoutsArgs
{
Create = "string",
},
});
example, err := cloudfront.NewAnycastIpList(ctx, "anycastIpListResource", &cloudfront.AnycastIpListArgs{
IpCount: pulumi.Int(0),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &cloudfront.AnycastIpListTimeoutsArgs{
Create: pulumi.String("string"),
},
})
var anycastIpListResource = new AnycastIpList("anycastIpListResource", AnycastIpListArgs.builder()
.ipCount(0)
.name("string")
.tags(Map.of("string", "string"))
.timeouts(AnycastIpListTimeoutsArgs.builder()
.create("string")
.build())
.build());
anycast_ip_list_resource = aws.cloudfront.AnycastIpList("anycastIpListResource",
ip_count=0,
name="string",
tags={
"string": "string",
},
timeouts={
"create": "string",
})
const anycastIpListResource = new aws.cloudfront.AnycastIpList("anycastIpListResource", {
ipCount: 0,
name: "string",
tags: {
string: "string",
},
timeouts: {
create: "string",
},
});
type: aws:cloudfront:AnycastIpList
properties:
ipCount: 0
name: string
tags:
string: string
timeouts:
create: string
AnycastIpList 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 AnycastIpList resource accepts the following input properties:
- Ip
Count int - The number of static IP addresses that are allocated to the Anycast IP list. Valid values:
3,21. - Name string
Name of the Anycast IP list.
The following arguments are optional:
- Dictionary<string, string>
- Key-value tags for the place index. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Timeouts
Anycast
Ip List Timeouts
- Ip
Count int - The number of static IP addresses that are allocated to the Anycast IP list. Valid values:
3,21. - Name string
Name of the Anycast IP list.
The following arguments are optional:
- map[string]string
- Key-value tags for the place index. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Timeouts
Anycast
Ip List Timeouts Args
- ip
Count Integer - The number of static IP addresses that are allocated to the Anycast IP list. Valid values:
3,21. - name String
Name of the Anycast IP list.
The following arguments are optional:
- Map<String,String>
- Key-value tags for the place index. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Anycast
Ip List Timeouts
- ip
Count number - The number of static IP addresses that are allocated to the Anycast IP list. Valid values:
3,21. - name string
Name of the Anycast IP list.
The following arguments are optional:
- {[key: string]: string}
- Key-value tags for the place index. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Anycast
Ip List Timeouts
- ip_
count int - The number of static IP addresses that are allocated to the Anycast IP list. Valid values:
3,21. - name str
Name of the Anycast IP list.
The following arguments are optional:
- Mapping[str, str]
- Key-value tags for the place index. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Anycast
Ip List Timeouts Args
- ip
Count Number - The number of static IP addresses that are allocated to the Anycast IP list. Valid values:
3,21. - name String
Name of the Anycast IP list.
The following arguments are optional:
- Map<String>
- Key-value tags for the place index. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the AnycastIpList resource produces the following output properties:
- Anycast
Ips List<string> - The static IP addresses that are allocated to the Anycast IP list.
- Arn string
- The Anycast IP list ARN.
- Etag string
- The current version of the Anycast IP list.
- Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- Anycast
Ips []string - The static IP addresses that are allocated to the Anycast IP list.
- Arn string
- The Anycast IP list ARN.
- Etag string
- The current version of the Anycast IP list.
- Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- anycast
Ips List<String> - The static IP addresses that are allocated to the Anycast IP list.
- arn String
- The Anycast IP list ARN.
- etag String
- The current version of the Anycast IP list.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- anycast
Ips string[] - The static IP addresses that are allocated to the Anycast IP list.
- arn string
- The Anycast IP list ARN.
- etag string
- The current version of the Anycast IP list.
- id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- anycast_
ips Sequence[str] - The static IP addresses that are allocated to the Anycast IP list.
- arn str
- The Anycast IP list ARN.
- etag str
- The current version of the Anycast IP list.
- id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- anycast
Ips List<String> - The static IP addresses that are allocated to the Anycast IP list.
- arn String
- The Anycast IP list ARN.
- etag String
- The current version of the Anycast IP list.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
Look up Existing AnycastIpList Resource
Get an existing AnycastIpList 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?: AnycastIpListState, opts?: CustomResourceOptions): AnycastIpList@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
anycast_ips: Optional[Sequence[str]] = None,
arn: Optional[str] = None,
etag: Optional[str] = None,
ip_count: Optional[int] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
timeouts: Optional[AnycastIpListTimeoutsArgs] = None) -> AnycastIpListfunc GetAnycastIpList(ctx *Context, name string, id IDInput, state *AnycastIpListState, opts ...ResourceOption) (*AnycastIpList, error)public static AnycastIpList Get(string name, Input<string> id, AnycastIpListState? state, CustomResourceOptions? opts = null)public static AnycastIpList get(String name, Output<String> id, AnycastIpListState state, CustomResourceOptions options)resources: _: type: aws:cloudfront:AnycastIpList get: id: ${id}- 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.
- Anycast
Ips List<string> - The static IP addresses that are allocated to the Anycast IP list.
- Arn string
- The Anycast IP list ARN.
- Etag string
- The current version of the Anycast IP list.
- Ip
Count int - The number of static IP addresses that are allocated to the Anycast IP list. Valid values:
3,21. - Name string
Name of the Anycast IP list.
The following arguments are optional:
- Dictionary<string, string>
- Key-value tags for the place index. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - Timeouts
Anycast
Ip List Timeouts
- Anycast
Ips []string - The static IP addresses that are allocated to the Anycast IP list.
- Arn string
- The Anycast IP list ARN.
- Etag string
- The current version of the Anycast IP list.
- Ip
Count int - The number of static IP addresses that are allocated to the Anycast IP list. Valid values:
3,21. - Name string
Name of the Anycast IP list.
The following arguments are optional:
- map[string]string
- Key-value tags for the place index. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - Timeouts
Anycast
Ip List Timeouts Args
- anycast
Ips List<String> - The static IP addresses that are allocated to the Anycast IP list.
- arn String
- The Anycast IP list ARN.
- etag String
- The current version of the Anycast IP list.
- ip
Count Integer - The number of static IP addresses that are allocated to the Anycast IP list. Valid values:
3,21. - name String
Name of the Anycast IP list.
The following arguments are optional:
- Map<String,String>
- Key-value tags for the place index. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts
Anycast
Ip List Timeouts
- anycast
Ips string[] - The static IP addresses that are allocated to the Anycast IP list.
- arn string
- The Anycast IP list ARN.
- etag string
- The current version of the Anycast IP list.
- ip
Count number - The number of static IP addresses that are allocated to the Anycast IP list. Valid values:
3,21. - name string
Name of the Anycast IP list.
The following arguments are optional:
- {[key: string]: string}
- Key-value tags for the place index. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts
Anycast
Ip List Timeouts
- anycast_
ips Sequence[str] - The static IP addresses that are allocated to the Anycast IP list.
- arn str
- The Anycast IP list ARN.
- etag str
- The current version of the Anycast IP list.
- ip_
count int - The number of static IP addresses that are allocated to the Anycast IP list. Valid values:
3,21. - name str
Name of the Anycast IP list.
The following arguments are optional:
- Mapping[str, str]
- Key-value tags for the place index. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts
Anycast
Ip List Timeouts Args
- anycast
Ips List<String> - The static IP addresses that are allocated to the Anycast IP list.
- arn String
- The Anycast IP list ARN.
- etag String
- The current version of the Anycast IP list.
- ip
Count Number - The number of static IP addresses that are allocated to the Anycast IP list. Valid values:
3,21. - name String
Name of the Anycast IP list.
The following arguments are optional:
- Map<String>
- Key-value tags for the place index. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts Property Map
Supporting Types
AnycastIpListTimeouts, AnycastIpListTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
Using pulumi import, import CloudFront Anycast IP List using the id. For example:
$ pulumi import aws:cloudfront/anycastIpList:AnycastIpList example abcd-1234
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
