github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/appconfig/getConfigurationProfiles.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 all Configuration Properties for an AppConfig Application. This will allow you to pass Configuration
    15  // Profile IDs to another resource.
    16  //
    17  // ## Example Usage
    18  func GetConfigurationProfiles(ctx *pulumi.Context, args *GetConfigurationProfilesArgs, opts ...pulumi.InvokeOption) (*GetConfigurationProfilesResult, error) {
    19  	opts = internal.PkgInvokeDefaultOpts(opts)
    20  	var rv GetConfigurationProfilesResult
    21  	err := ctx.Invoke("aws:appconfig/getConfigurationProfiles:getConfigurationProfiles", args, &rv, opts...)
    22  	if err != nil {
    23  		return nil, err
    24  	}
    25  	return &rv, nil
    26  }
    27  
    28  // A collection of arguments for invoking getConfigurationProfiles.
    29  type GetConfigurationProfilesArgs struct {
    30  	// ID of the AppConfig Application.
    31  	ApplicationId string `pulumi:"applicationId"`
    32  }
    33  
    34  // A collection of values returned by getConfigurationProfiles.
    35  type GetConfigurationProfilesResult struct {
    36  	ApplicationId string `pulumi:"applicationId"`
    37  	// Set of Configuration Profile IDs associated with the AppConfig Application.
    38  	ConfigurationProfileIds []string `pulumi:"configurationProfileIds"`
    39  	// The provider-assigned unique ID for this managed resource.
    40  	Id string `pulumi:"id"`
    41  }
    42  
    43  func GetConfigurationProfilesOutput(ctx *pulumi.Context, args GetConfigurationProfilesOutputArgs, opts ...pulumi.InvokeOption) GetConfigurationProfilesResultOutput {
    44  	return pulumi.ToOutputWithContext(context.Background(), args).
    45  		ApplyT(func(v interface{}) (GetConfigurationProfilesResult, error) {
    46  			args := v.(GetConfigurationProfilesArgs)
    47  			r, err := GetConfigurationProfiles(ctx, &args, opts...)
    48  			var s GetConfigurationProfilesResult
    49  			if r != nil {
    50  				s = *r
    51  			}
    52  			return s, err
    53  		}).(GetConfigurationProfilesResultOutput)
    54  }
    55  
    56  // A collection of arguments for invoking getConfigurationProfiles.
    57  type GetConfigurationProfilesOutputArgs struct {
    58  	// ID of the AppConfig Application.
    59  	ApplicationId pulumi.StringInput `pulumi:"applicationId"`
    60  }
    61  
    62  func (GetConfigurationProfilesOutputArgs) ElementType() reflect.Type {
    63  	return reflect.TypeOf((*GetConfigurationProfilesArgs)(nil)).Elem()
    64  }
    65  
    66  // A collection of values returned by getConfigurationProfiles.
    67  type GetConfigurationProfilesResultOutput struct{ *pulumi.OutputState }
    68  
    69  func (GetConfigurationProfilesResultOutput) ElementType() reflect.Type {
    70  	return reflect.TypeOf((*GetConfigurationProfilesResult)(nil)).Elem()
    71  }
    72  
    73  func (o GetConfigurationProfilesResultOutput) ToGetConfigurationProfilesResultOutput() GetConfigurationProfilesResultOutput {
    74  	return o
    75  }
    76  
    77  func (o GetConfigurationProfilesResultOutput) ToGetConfigurationProfilesResultOutputWithContext(ctx context.Context) GetConfigurationProfilesResultOutput {
    78  	return o
    79  }
    80  
    81  func (o GetConfigurationProfilesResultOutput) ApplicationId() pulumi.StringOutput {
    82  	return o.ApplyT(func(v GetConfigurationProfilesResult) string { return v.ApplicationId }).(pulumi.StringOutput)
    83  }
    84  
    85  // Set of Configuration Profile IDs associated with the AppConfig Application.
    86  func (o GetConfigurationProfilesResultOutput) ConfigurationProfileIds() pulumi.StringArrayOutput {
    87  	return o.ApplyT(func(v GetConfigurationProfilesResult) []string { return v.ConfigurationProfileIds }).(pulumi.StringArrayOutput)
    88  }
    89  
    90  // The provider-assigned unique ID for this managed resource.
    91  func (o GetConfigurationProfilesResultOutput) Id() pulumi.StringOutput {
    92  	return o.ApplyT(func(v GetConfigurationProfilesResult) string { return v.Id }).(pulumi.StringOutput)
    93  }
    94  
    95  func init() {
    96  	pulumi.RegisterOutputType(GetConfigurationProfilesResultOutput{})
    97  }