github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/appconfig/getConfigurationProfile.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 appconfig 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 // Provides access to an AppConfig Configuration Profile. 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/appconfig" 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 := appconfig.LookupConfigurationProfile(ctx, &appconfig.LookupConfigurationProfileArgs{ 34 // ApplicationId: "b5d5gpj", 35 // ConfigurationProfileId: "qrbb1c1", 36 // }, nil) 37 // if err != nil { 38 // return err 39 // } 40 // return nil 41 // }) 42 // } 43 // 44 // ``` 45 // <!--End PulumiCodeChooser --> 46 func LookupConfigurationProfile(ctx *pulumi.Context, args *LookupConfigurationProfileArgs, opts ...pulumi.InvokeOption) (*LookupConfigurationProfileResult, error) { 47 opts = internal.PkgInvokeDefaultOpts(opts) 48 var rv LookupConfigurationProfileResult 49 err := ctx.Invoke("aws:appconfig/getConfigurationProfile:getConfigurationProfile", args, &rv, opts...) 50 if err != nil { 51 return nil, err 52 } 53 return &rv, nil 54 } 55 56 // A collection of arguments for invoking getConfigurationProfile. 57 type LookupConfigurationProfileArgs struct { 58 // ID of the AppConfig application to which this configuration profile belongs. 59 ApplicationId string `pulumi:"applicationId"` 60 // ID of the Configuration Profile. 61 ConfigurationProfileId string `pulumi:"configurationProfileId"` 62 // Map of tags for the resource. 63 Tags map[string]string `pulumi:"tags"` 64 } 65 66 // A collection of values returned by getConfigurationProfile. 67 type LookupConfigurationProfileResult struct { 68 ApplicationId string `pulumi:"applicationId"` 69 // ARN of the Configuration Profile. 70 Arn string `pulumi:"arn"` 71 ConfigurationProfileId string `pulumi:"configurationProfileId"` 72 // Description of the Configuration Profile. 73 Description string `pulumi:"description"` 74 // The provider-assigned unique ID for this managed resource. 75 Id string `pulumi:"id"` 76 KmsKeyIdentifier string `pulumi:"kmsKeyIdentifier"` 77 // Location URI of the Configuration Profile. 78 LocationUri string `pulumi:"locationUri"` 79 // Name of the Configuration Profile. 80 Name string `pulumi:"name"` 81 // ARN of an IAM role with permission to access the configuration at the specified location_uri. 82 RetrievalRoleArn string `pulumi:"retrievalRoleArn"` 83 // Map of tags for the resource. 84 Tags map[string]string `pulumi:"tags"` 85 // Type of validator. Valid values: JSON_SCHEMA and LAMBDA. 86 Type string `pulumi:"type"` 87 // Nested list of methods for validating the configuration. 88 Validators []GetConfigurationProfileValidator `pulumi:"validators"` 89 } 90 91 func LookupConfigurationProfileOutput(ctx *pulumi.Context, args LookupConfigurationProfileOutputArgs, opts ...pulumi.InvokeOption) LookupConfigurationProfileResultOutput { 92 return pulumi.ToOutputWithContext(context.Background(), args). 93 ApplyT(func(v interface{}) (LookupConfigurationProfileResult, error) { 94 args := v.(LookupConfigurationProfileArgs) 95 r, err := LookupConfigurationProfile(ctx, &args, opts...) 96 var s LookupConfigurationProfileResult 97 if r != nil { 98 s = *r 99 } 100 return s, err 101 }).(LookupConfigurationProfileResultOutput) 102 } 103 104 // A collection of arguments for invoking getConfigurationProfile. 105 type LookupConfigurationProfileOutputArgs struct { 106 // ID of the AppConfig application to which this configuration profile belongs. 107 ApplicationId pulumi.StringInput `pulumi:"applicationId"` 108 // ID of the Configuration Profile. 109 ConfigurationProfileId pulumi.StringInput `pulumi:"configurationProfileId"` 110 // Map of tags for the resource. 111 Tags pulumi.StringMapInput `pulumi:"tags"` 112 } 113 114 func (LookupConfigurationProfileOutputArgs) ElementType() reflect.Type { 115 return reflect.TypeOf((*LookupConfigurationProfileArgs)(nil)).Elem() 116 } 117 118 // A collection of values returned by getConfigurationProfile. 119 type LookupConfigurationProfileResultOutput struct{ *pulumi.OutputState } 120 121 func (LookupConfigurationProfileResultOutput) ElementType() reflect.Type { 122 return reflect.TypeOf((*LookupConfigurationProfileResult)(nil)).Elem() 123 } 124 125 func (o LookupConfigurationProfileResultOutput) ToLookupConfigurationProfileResultOutput() LookupConfigurationProfileResultOutput { 126 return o 127 } 128 129 func (o LookupConfigurationProfileResultOutput) ToLookupConfigurationProfileResultOutputWithContext(ctx context.Context) LookupConfigurationProfileResultOutput { 130 return o 131 } 132 133 func (o LookupConfigurationProfileResultOutput) ApplicationId() pulumi.StringOutput { 134 return o.ApplyT(func(v LookupConfigurationProfileResult) string { return v.ApplicationId }).(pulumi.StringOutput) 135 } 136 137 // ARN of the Configuration Profile. 138 func (o LookupConfigurationProfileResultOutput) Arn() pulumi.StringOutput { 139 return o.ApplyT(func(v LookupConfigurationProfileResult) string { return v.Arn }).(pulumi.StringOutput) 140 } 141 142 func (o LookupConfigurationProfileResultOutput) ConfigurationProfileId() pulumi.StringOutput { 143 return o.ApplyT(func(v LookupConfigurationProfileResult) string { return v.ConfigurationProfileId }).(pulumi.StringOutput) 144 } 145 146 // Description of the Configuration Profile. 147 func (o LookupConfigurationProfileResultOutput) Description() pulumi.StringOutput { 148 return o.ApplyT(func(v LookupConfigurationProfileResult) string { return v.Description }).(pulumi.StringOutput) 149 } 150 151 // The provider-assigned unique ID for this managed resource. 152 func (o LookupConfigurationProfileResultOutput) Id() pulumi.StringOutput { 153 return o.ApplyT(func(v LookupConfigurationProfileResult) string { return v.Id }).(pulumi.StringOutput) 154 } 155 156 func (o LookupConfigurationProfileResultOutput) KmsKeyIdentifier() pulumi.StringOutput { 157 return o.ApplyT(func(v LookupConfigurationProfileResult) string { return v.KmsKeyIdentifier }).(pulumi.StringOutput) 158 } 159 160 // Location URI of the Configuration Profile. 161 func (o LookupConfigurationProfileResultOutput) LocationUri() pulumi.StringOutput { 162 return o.ApplyT(func(v LookupConfigurationProfileResult) string { return v.LocationUri }).(pulumi.StringOutput) 163 } 164 165 // Name of the Configuration Profile. 166 func (o LookupConfigurationProfileResultOutput) Name() pulumi.StringOutput { 167 return o.ApplyT(func(v LookupConfigurationProfileResult) string { return v.Name }).(pulumi.StringOutput) 168 } 169 170 // ARN of an IAM role with permission to access the configuration at the specified location_uri. 171 func (o LookupConfigurationProfileResultOutput) RetrievalRoleArn() pulumi.StringOutput { 172 return o.ApplyT(func(v LookupConfigurationProfileResult) string { return v.RetrievalRoleArn }).(pulumi.StringOutput) 173 } 174 175 // Map of tags for the resource. 176 func (o LookupConfigurationProfileResultOutput) Tags() pulumi.StringMapOutput { 177 return o.ApplyT(func(v LookupConfigurationProfileResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput) 178 } 179 180 // Type of validator. Valid values: JSON_SCHEMA and LAMBDA. 181 func (o LookupConfigurationProfileResultOutput) Type() pulumi.StringOutput { 182 return o.ApplyT(func(v LookupConfigurationProfileResult) string { return v.Type }).(pulumi.StringOutput) 183 } 184 185 // Nested list of methods for validating the configuration. 186 func (o LookupConfigurationProfileResultOutput) Validators() GetConfigurationProfileValidatorArrayOutput { 187 return o.ApplyT(func(v LookupConfigurationProfileResult) []GetConfigurationProfileValidator { return v.Validators }).(GetConfigurationProfileValidatorArrayOutput) 188 } 189 190 func init() { 191 pulumi.RegisterOutputType(LookupConfigurationProfileResultOutput{}) 192 }