github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/sesv2/getDedicatedIpPool.go (about) 1 // Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. 2 // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** 3 4 package sesv2 5 6 import ( 7 "context" 8 "reflect" 9 10 "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal" 11 "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 12 ) 13 14 // Data source for managing an AWS SESv2 (Simple Email V2) Dedicated IP Pool. 15 // 16 // ## Example Usage 17 // 18 // ### Basic Usage 19 // 20 // <!--Start PulumiCodeChooser --> 21 // ```go 22 // package main 23 // 24 // import ( 25 // 26 // "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/sesv2" 27 // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 28 // 29 // ) 30 // 31 // func main() { 32 // pulumi.Run(func(ctx *pulumi.Context) error { 33 // _, err := sesv2.LookupDedicatedIpPool(ctx, &sesv2.LookupDedicatedIpPoolArgs{ 34 // PoolName: "my-pool", 35 // }, nil) 36 // if err != nil { 37 // return err 38 // } 39 // return nil 40 // }) 41 // } 42 // 43 // ``` 44 // <!--End PulumiCodeChooser --> 45 func LookupDedicatedIpPool(ctx *pulumi.Context, args *LookupDedicatedIpPoolArgs, opts ...pulumi.InvokeOption) (*LookupDedicatedIpPoolResult, error) { 46 opts = internal.PkgInvokeDefaultOpts(opts) 47 var rv LookupDedicatedIpPoolResult 48 err := ctx.Invoke("aws:sesv2/getDedicatedIpPool:getDedicatedIpPool", args, &rv, opts...) 49 if err != nil { 50 return nil, err 51 } 52 return &rv, nil 53 } 54 55 // A collection of arguments for invoking getDedicatedIpPool. 56 type LookupDedicatedIpPoolArgs struct { 57 // Name of the dedicated IP pool. 58 PoolName string `pulumi:"poolName"` 59 // A map of tags attached to the pool. 60 Tags map[string]string `pulumi:"tags"` 61 } 62 63 // A collection of values returned by getDedicatedIpPool. 64 type LookupDedicatedIpPoolResult struct { 65 // ARN of the Dedicated IP Pool. 66 Arn string `pulumi:"arn"` 67 // A list of objects describing the pool's dedicated IP's. See `dedicatedIps`. 68 DedicatedIps []GetDedicatedIpPoolDedicatedIp `pulumi:"dedicatedIps"` 69 // The provider-assigned unique ID for this managed resource. 70 Id string `pulumi:"id"` 71 PoolName string `pulumi:"poolName"` 72 // (Optional) IP pool scaling mode. Valid values: `STANDARD`, `MANAGED`. 73 ScalingMode string `pulumi:"scalingMode"` 74 // A map of tags attached to the pool. 75 Tags map[string]string `pulumi:"tags"` 76 } 77 78 func LookupDedicatedIpPoolOutput(ctx *pulumi.Context, args LookupDedicatedIpPoolOutputArgs, opts ...pulumi.InvokeOption) LookupDedicatedIpPoolResultOutput { 79 return pulumi.ToOutputWithContext(context.Background(), args). 80 ApplyT(func(v interface{}) (LookupDedicatedIpPoolResult, error) { 81 args := v.(LookupDedicatedIpPoolArgs) 82 r, err := LookupDedicatedIpPool(ctx, &args, opts...) 83 var s LookupDedicatedIpPoolResult 84 if r != nil { 85 s = *r 86 } 87 return s, err 88 }).(LookupDedicatedIpPoolResultOutput) 89 } 90 91 // A collection of arguments for invoking getDedicatedIpPool. 92 type LookupDedicatedIpPoolOutputArgs struct { 93 // Name of the dedicated IP pool. 94 PoolName pulumi.StringInput `pulumi:"poolName"` 95 // A map of tags attached to the pool. 96 Tags pulumi.StringMapInput `pulumi:"tags"` 97 } 98 99 func (LookupDedicatedIpPoolOutputArgs) ElementType() reflect.Type { 100 return reflect.TypeOf((*LookupDedicatedIpPoolArgs)(nil)).Elem() 101 } 102 103 // A collection of values returned by getDedicatedIpPool. 104 type LookupDedicatedIpPoolResultOutput struct{ *pulumi.OutputState } 105 106 func (LookupDedicatedIpPoolResultOutput) ElementType() reflect.Type { 107 return reflect.TypeOf((*LookupDedicatedIpPoolResult)(nil)).Elem() 108 } 109 110 func (o LookupDedicatedIpPoolResultOutput) ToLookupDedicatedIpPoolResultOutput() LookupDedicatedIpPoolResultOutput { 111 return o 112 } 113 114 func (o LookupDedicatedIpPoolResultOutput) ToLookupDedicatedIpPoolResultOutputWithContext(ctx context.Context) LookupDedicatedIpPoolResultOutput { 115 return o 116 } 117 118 // ARN of the Dedicated IP Pool. 119 func (o LookupDedicatedIpPoolResultOutput) Arn() pulumi.StringOutput { 120 return o.ApplyT(func(v LookupDedicatedIpPoolResult) string { return v.Arn }).(pulumi.StringOutput) 121 } 122 123 // A list of objects describing the pool's dedicated IP's. See `dedicatedIps`. 124 func (o LookupDedicatedIpPoolResultOutput) DedicatedIps() GetDedicatedIpPoolDedicatedIpArrayOutput { 125 return o.ApplyT(func(v LookupDedicatedIpPoolResult) []GetDedicatedIpPoolDedicatedIp { return v.DedicatedIps }).(GetDedicatedIpPoolDedicatedIpArrayOutput) 126 } 127 128 // The provider-assigned unique ID for this managed resource. 129 func (o LookupDedicatedIpPoolResultOutput) Id() pulumi.StringOutput { 130 return o.ApplyT(func(v LookupDedicatedIpPoolResult) string { return v.Id }).(pulumi.StringOutput) 131 } 132 133 func (o LookupDedicatedIpPoolResultOutput) PoolName() pulumi.StringOutput { 134 return o.ApplyT(func(v LookupDedicatedIpPoolResult) string { return v.PoolName }).(pulumi.StringOutput) 135 } 136 137 // (Optional) IP pool scaling mode. Valid values: `STANDARD`, `MANAGED`. 138 func (o LookupDedicatedIpPoolResultOutput) ScalingMode() pulumi.StringOutput { 139 return o.ApplyT(func(v LookupDedicatedIpPoolResult) string { return v.ScalingMode }).(pulumi.StringOutput) 140 } 141 142 // A map of tags attached to the pool. 143 func (o LookupDedicatedIpPoolResultOutput) Tags() pulumi.StringMapOutput { 144 return o.ApplyT(func(v LookupDedicatedIpPoolResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) 145 } 146 147 func init() { 148 pulumi.RegisterOutputType(LookupDedicatedIpPoolResultOutput{}) 149 }