github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/opensearch/getServerlessSecurityConfig.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 opensearch 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 OpenSearch Serverless Security Config. 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/opensearch" 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 := opensearch.LookupServerlessSecurityConfig(ctx, &opensearch.LookupServerlessSecurityConfigArgs{ 34 // Id: "saml/12345678912/example", 35 // }, nil) 36 // if err != nil { 37 // return err 38 // } 39 // return nil 40 // }) 41 // } 42 // 43 // ``` 44 // <!--End PulumiCodeChooser --> 45 func LookupServerlessSecurityConfig(ctx *pulumi.Context, args *LookupServerlessSecurityConfigArgs, opts ...pulumi.InvokeOption) (*LookupServerlessSecurityConfigResult, error) { 46 opts = internal.PkgInvokeDefaultOpts(opts) 47 var rv LookupServerlessSecurityConfigResult 48 err := ctx.Invoke("aws:opensearch/getServerlessSecurityConfig:getServerlessSecurityConfig", 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 getServerlessSecurityConfig. 56 type LookupServerlessSecurityConfigArgs struct { 57 // The unique identifier of the security configuration. 58 Id string `pulumi:"id"` 59 // SAML options for the security configuration. 60 SamlOptions *GetServerlessSecurityConfigSamlOptions `pulumi:"samlOptions"` 61 } 62 63 // A collection of values returned by getServerlessSecurityConfig. 64 type LookupServerlessSecurityConfigResult struct { 65 // The version of the security configuration. 66 ConfigVersion string `pulumi:"configVersion"` 67 // The date the configuration was created. 68 CreatedDate string `pulumi:"createdDate"` 69 // The description of the security configuration. 70 Description string `pulumi:"description"` 71 Id string `pulumi:"id"` 72 // The date the configuration was last modified. 73 LastModifiedDate string `pulumi:"lastModifiedDate"` 74 // SAML options for the security configuration. 75 SamlOptions *GetServerlessSecurityConfigSamlOptions `pulumi:"samlOptions"` 76 // The type of security configuration. 77 Type string `pulumi:"type"` 78 } 79 80 func LookupServerlessSecurityConfigOutput(ctx *pulumi.Context, args LookupServerlessSecurityConfigOutputArgs, opts ...pulumi.InvokeOption) LookupServerlessSecurityConfigResultOutput { 81 return pulumi.ToOutputWithContext(context.Background(), args). 82 ApplyT(func(v interface{}) (LookupServerlessSecurityConfigResult, error) { 83 args := v.(LookupServerlessSecurityConfigArgs) 84 r, err := LookupServerlessSecurityConfig(ctx, &args, opts...) 85 var s LookupServerlessSecurityConfigResult 86 if r != nil { 87 s = *r 88 } 89 return s, err 90 }).(LookupServerlessSecurityConfigResultOutput) 91 } 92 93 // A collection of arguments for invoking getServerlessSecurityConfig. 94 type LookupServerlessSecurityConfigOutputArgs struct { 95 // The unique identifier of the security configuration. 96 Id pulumi.StringInput `pulumi:"id"` 97 // SAML options for the security configuration. 98 SamlOptions GetServerlessSecurityConfigSamlOptionsPtrInput `pulumi:"samlOptions"` 99 } 100 101 func (LookupServerlessSecurityConfigOutputArgs) ElementType() reflect.Type { 102 return reflect.TypeOf((*LookupServerlessSecurityConfigArgs)(nil)).Elem() 103 } 104 105 // A collection of values returned by getServerlessSecurityConfig. 106 type LookupServerlessSecurityConfigResultOutput struct{ *pulumi.OutputState } 107 108 func (LookupServerlessSecurityConfigResultOutput) ElementType() reflect.Type { 109 return reflect.TypeOf((*LookupServerlessSecurityConfigResult)(nil)).Elem() 110 } 111 112 func (o LookupServerlessSecurityConfigResultOutput) ToLookupServerlessSecurityConfigResultOutput() LookupServerlessSecurityConfigResultOutput { 113 return o 114 } 115 116 func (o LookupServerlessSecurityConfigResultOutput) ToLookupServerlessSecurityConfigResultOutputWithContext(ctx context.Context) LookupServerlessSecurityConfigResultOutput { 117 return o 118 } 119 120 // The version of the security configuration. 121 func (o LookupServerlessSecurityConfigResultOutput) ConfigVersion() pulumi.StringOutput { 122 return o.ApplyT(func(v LookupServerlessSecurityConfigResult) string { return v.ConfigVersion }).(pulumi.StringOutput) 123 } 124 125 // The date the configuration was created. 126 func (o LookupServerlessSecurityConfigResultOutput) CreatedDate() pulumi.StringOutput { 127 return o.ApplyT(func(v LookupServerlessSecurityConfigResult) string { return v.CreatedDate }).(pulumi.StringOutput) 128 } 129 130 // The description of the security configuration. 131 func (o LookupServerlessSecurityConfigResultOutput) Description() pulumi.StringOutput { 132 return o.ApplyT(func(v LookupServerlessSecurityConfigResult) string { return v.Description }).(pulumi.StringOutput) 133 } 134 135 func (o LookupServerlessSecurityConfigResultOutput) Id() pulumi.StringOutput { 136 return o.ApplyT(func(v LookupServerlessSecurityConfigResult) string { return v.Id }).(pulumi.StringOutput) 137 } 138 139 // The date the configuration was last modified. 140 func (o LookupServerlessSecurityConfigResultOutput) LastModifiedDate() pulumi.StringOutput { 141 return o.ApplyT(func(v LookupServerlessSecurityConfigResult) string { return v.LastModifiedDate }).(pulumi.StringOutput) 142 } 143 144 // SAML options for the security configuration. 145 func (o LookupServerlessSecurityConfigResultOutput) SamlOptions() GetServerlessSecurityConfigSamlOptionsPtrOutput { 146 return o.ApplyT(func(v LookupServerlessSecurityConfigResult) *GetServerlessSecurityConfigSamlOptions { 147 return v.SamlOptions 148 }).(GetServerlessSecurityConfigSamlOptionsPtrOutput) 149 } 150 151 // The type of security configuration. 152 func (o LookupServerlessSecurityConfigResultOutput) Type() pulumi.StringOutput { 153 return o.ApplyT(func(v LookupServerlessSecurityConfigResult) string { return v.Type }).(pulumi.StringOutput) 154 } 155 156 func init() { 157 pulumi.RegisterOutputType(LookupServerlessSecurityConfigResultOutput{}) 158 }