github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/sesv2/getConfigurationSet.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) Configuration Set. 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.LookupConfigurationSet(ctx, &sesv2.LookupConfigurationSetArgs{ 34 // ConfigurationSetName: "example", 35 // }, nil) 36 // if err != nil { 37 // return err 38 // } 39 // return nil 40 // }) 41 // } 42 // 43 // ``` 44 // <!--End PulumiCodeChooser --> 45 func LookupConfigurationSet(ctx *pulumi.Context, args *LookupConfigurationSetArgs, opts ...pulumi.InvokeOption) (*LookupConfigurationSetResult, error) { 46 opts = internal.PkgInvokeDefaultOpts(opts) 47 var rv LookupConfigurationSetResult 48 err := ctx.Invoke("aws:sesv2/getConfigurationSet:getConfigurationSet", 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 getConfigurationSet. 56 type LookupConfigurationSetArgs struct { 57 // The name of the configuration set. 58 ConfigurationSetName string `pulumi:"configurationSetName"` 59 // Key-value map of resource tags for the container recipe. 60 Tags map[string]string `pulumi:"tags"` 61 } 62 63 // A collection of values returned by getConfigurationSet. 64 type LookupConfigurationSetResult struct { 65 Arn string `pulumi:"arn"` 66 ConfigurationSetName string `pulumi:"configurationSetName"` 67 // An object that defines the dedicated IP pool that is used to send emails that you send using the configuration set. 68 DeliveryOptions []GetConfigurationSetDeliveryOption `pulumi:"deliveryOptions"` 69 // The provider-assigned unique ID for this managed resource. 70 Id string `pulumi:"id"` 71 // An object that defines whether or not Amazon SES collects reputation metrics for the emails that you send that use the configuration set. 72 ReputationOptions []GetConfigurationSetReputationOption `pulumi:"reputationOptions"` 73 // An object that defines whether or not Amazon SES can send email that you send using the configuration set. 74 SendingOptions []GetConfigurationSetSendingOption `pulumi:"sendingOptions"` 75 // An object that contains information about the suppression list preferences for your account. 76 SuppressionOptions []GetConfigurationSetSuppressionOption `pulumi:"suppressionOptions"` 77 // Key-value map of resource tags for the container recipe. 78 Tags map[string]string `pulumi:"tags"` 79 // An object that defines the open and click tracking options for emails that you send using the configuration set. 80 TrackingOptions []GetConfigurationSetTrackingOption `pulumi:"trackingOptions"` 81 // An object that contains information about the VDM preferences for your configuration set. 82 VdmOptions []GetConfigurationSetVdmOption `pulumi:"vdmOptions"` 83 } 84 85 func LookupConfigurationSetOutput(ctx *pulumi.Context, args LookupConfigurationSetOutputArgs, opts ...pulumi.InvokeOption) LookupConfigurationSetResultOutput { 86 return pulumi.ToOutputWithContext(context.Background(), args). 87 ApplyT(func(v interface{}) (LookupConfigurationSetResult, error) { 88 args := v.(LookupConfigurationSetArgs) 89 r, err := LookupConfigurationSet(ctx, &args, opts...) 90 var s LookupConfigurationSetResult 91 if r != nil { 92 s = *r 93 } 94 return s, err 95 }).(LookupConfigurationSetResultOutput) 96 } 97 98 // A collection of arguments for invoking getConfigurationSet. 99 type LookupConfigurationSetOutputArgs struct { 100 // The name of the configuration set. 101 ConfigurationSetName pulumi.StringInput `pulumi:"configurationSetName"` 102 // Key-value map of resource tags for the container recipe. 103 Tags pulumi.StringMapInput `pulumi:"tags"` 104 } 105 106 func (LookupConfigurationSetOutputArgs) ElementType() reflect.Type { 107 return reflect.TypeOf((*LookupConfigurationSetArgs)(nil)).Elem() 108 } 109 110 // A collection of values returned by getConfigurationSet. 111 type LookupConfigurationSetResultOutput struct{ *pulumi.OutputState } 112 113 func (LookupConfigurationSetResultOutput) ElementType() reflect.Type { 114 return reflect.TypeOf((*LookupConfigurationSetResult)(nil)).Elem() 115 } 116 117 func (o LookupConfigurationSetResultOutput) ToLookupConfigurationSetResultOutput() LookupConfigurationSetResultOutput { 118 return o 119 } 120 121 func (o LookupConfigurationSetResultOutput) ToLookupConfigurationSetResultOutputWithContext(ctx context.Context) LookupConfigurationSetResultOutput { 122 return o 123 } 124 125 func (o LookupConfigurationSetResultOutput) Arn() pulumi.StringOutput { 126 return o.ApplyT(func(v LookupConfigurationSetResult) string { return v.Arn }).(pulumi.StringOutput) 127 } 128 129 func (o LookupConfigurationSetResultOutput) ConfigurationSetName() pulumi.StringOutput { 130 return o.ApplyT(func(v LookupConfigurationSetResult) string { return v.ConfigurationSetName }).(pulumi.StringOutput) 131 } 132 133 // An object that defines the dedicated IP pool that is used to send emails that you send using the configuration set. 134 func (o LookupConfigurationSetResultOutput) DeliveryOptions() GetConfigurationSetDeliveryOptionArrayOutput { 135 return o.ApplyT(func(v LookupConfigurationSetResult) []GetConfigurationSetDeliveryOption { return v.DeliveryOptions }).(GetConfigurationSetDeliveryOptionArrayOutput) 136 } 137 138 // The provider-assigned unique ID for this managed resource. 139 func (o LookupConfigurationSetResultOutput) Id() pulumi.StringOutput { 140 return o.ApplyT(func(v LookupConfigurationSetResult) string { return v.Id }).(pulumi.StringOutput) 141 } 142 143 // An object that defines whether or not Amazon SES collects reputation metrics for the emails that you send that use the configuration set. 144 func (o LookupConfigurationSetResultOutput) ReputationOptions() GetConfigurationSetReputationOptionArrayOutput { 145 return o.ApplyT(func(v LookupConfigurationSetResult) []GetConfigurationSetReputationOption { return v.ReputationOptions }).(GetConfigurationSetReputationOptionArrayOutput) 146 } 147 148 // An object that defines whether or not Amazon SES can send email that you send using the configuration set. 149 func (o LookupConfigurationSetResultOutput) SendingOptions() GetConfigurationSetSendingOptionArrayOutput { 150 return o.ApplyT(func(v LookupConfigurationSetResult) []GetConfigurationSetSendingOption { return v.SendingOptions }).(GetConfigurationSetSendingOptionArrayOutput) 151 } 152 153 // An object that contains information about the suppression list preferences for your account. 154 func (o LookupConfigurationSetResultOutput) SuppressionOptions() GetConfigurationSetSuppressionOptionArrayOutput { 155 return o.ApplyT(func(v LookupConfigurationSetResult) []GetConfigurationSetSuppressionOption { 156 return v.SuppressionOptions 157 }).(GetConfigurationSetSuppressionOptionArrayOutput) 158 } 159 160 // Key-value map of resource tags for the container recipe. 161 func (o LookupConfigurationSetResultOutput) Tags() pulumi.StringMapOutput { 162 return o.ApplyT(func(v LookupConfigurationSetResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) 163 } 164 165 // An object that defines the open and click tracking options for emails that you send using the configuration set. 166 func (o LookupConfigurationSetResultOutput) TrackingOptions() GetConfigurationSetTrackingOptionArrayOutput { 167 return o.ApplyT(func(v LookupConfigurationSetResult) []GetConfigurationSetTrackingOption { return v.TrackingOptions }).(GetConfigurationSetTrackingOptionArrayOutput) 168 } 169 170 // An object that contains information about the VDM preferences for your configuration set. 171 func (o LookupConfigurationSetResultOutput) VdmOptions() GetConfigurationSetVdmOptionArrayOutput { 172 return o.ApplyT(func(v LookupConfigurationSetResult) []GetConfigurationSetVdmOption { return v.VdmOptions }).(GetConfigurationSetVdmOptionArrayOutput) 173 } 174 175 func init() { 176 pulumi.RegisterOutputType(LookupConfigurationSetResultOutput{}) 177 }