github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/ssm/pulumiEnums.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 ssm
     5  
     6  import (
     7  	"context"
     8  	"reflect"
     9  
    10  	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    11  )
    12  
    13  type ParameterType string
    14  
    15  const (
    16  	ParameterTypeString       = ParameterType("String")
    17  	ParameterTypeStringList   = ParameterType("StringList")
    18  	ParameterTypeSecureString = ParameterType("SecureString")
    19  )
    20  
    21  func (ParameterType) ElementType() reflect.Type {
    22  	return reflect.TypeOf((*ParameterType)(nil)).Elem()
    23  }
    24  
    25  func (e ParameterType) ToParameterTypeOutput() ParameterTypeOutput {
    26  	return pulumi.ToOutput(e).(ParameterTypeOutput)
    27  }
    28  
    29  func (e ParameterType) ToParameterTypeOutputWithContext(ctx context.Context) ParameterTypeOutput {
    30  	return pulumi.ToOutputWithContext(ctx, e).(ParameterTypeOutput)
    31  }
    32  
    33  func (e ParameterType) ToParameterTypePtrOutput() ParameterTypePtrOutput {
    34  	return e.ToParameterTypePtrOutputWithContext(context.Background())
    35  }
    36  
    37  func (e ParameterType) ToParameterTypePtrOutputWithContext(ctx context.Context) ParameterTypePtrOutput {
    38  	return ParameterType(e).ToParameterTypeOutputWithContext(ctx).ToParameterTypePtrOutputWithContext(ctx)
    39  }
    40  
    41  func (e ParameterType) ToStringOutput() pulumi.StringOutput {
    42  	return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
    43  }
    44  
    45  func (e ParameterType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
    46  	return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
    47  }
    48  
    49  func (e ParameterType) ToStringPtrOutput() pulumi.StringPtrOutput {
    50  	return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
    51  }
    52  
    53  func (e ParameterType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
    54  	return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
    55  }
    56  
    57  type ParameterTypeOutput struct{ *pulumi.OutputState }
    58  
    59  func (ParameterTypeOutput) ElementType() reflect.Type {
    60  	return reflect.TypeOf((*ParameterType)(nil)).Elem()
    61  }
    62  
    63  func (o ParameterTypeOutput) ToParameterTypeOutput() ParameterTypeOutput {
    64  	return o
    65  }
    66  
    67  func (o ParameterTypeOutput) ToParameterTypeOutputWithContext(ctx context.Context) ParameterTypeOutput {
    68  	return o
    69  }
    70  
    71  func (o ParameterTypeOutput) ToParameterTypePtrOutput() ParameterTypePtrOutput {
    72  	return o.ToParameterTypePtrOutputWithContext(context.Background())
    73  }
    74  
    75  func (o ParameterTypeOutput) ToParameterTypePtrOutputWithContext(ctx context.Context) ParameterTypePtrOutput {
    76  	return o.ApplyTWithContext(ctx, func(_ context.Context, v ParameterType) *ParameterType {
    77  		return &v
    78  	}).(ParameterTypePtrOutput)
    79  }
    80  
    81  func (o ParameterTypeOutput) ToStringOutput() pulumi.StringOutput {
    82  	return o.ToStringOutputWithContext(context.Background())
    83  }
    84  
    85  func (o ParameterTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
    86  	return o.ApplyTWithContext(ctx, func(_ context.Context, e ParameterType) string {
    87  		return string(e)
    88  	}).(pulumi.StringOutput)
    89  }
    90  
    91  func (o ParameterTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
    92  	return o.ToStringPtrOutputWithContext(context.Background())
    93  }
    94  
    95  func (o ParameterTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
    96  	return o.ApplyTWithContext(ctx, func(_ context.Context, e ParameterType) *string {
    97  		v := string(e)
    98  		return &v
    99  	}).(pulumi.StringPtrOutput)
   100  }
   101  
   102  type ParameterTypePtrOutput struct{ *pulumi.OutputState }
   103  
   104  func (ParameterTypePtrOutput) ElementType() reflect.Type {
   105  	return reflect.TypeOf((**ParameterType)(nil)).Elem()
   106  }
   107  
   108  func (o ParameterTypePtrOutput) ToParameterTypePtrOutput() ParameterTypePtrOutput {
   109  	return o
   110  }
   111  
   112  func (o ParameterTypePtrOutput) ToParameterTypePtrOutputWithContext(ctx context.Context) ParameterTypePtrOutput {
   113  	return o
   114  }
   115  
   116  func (o ParameterTypePtrOutput) Elem() ParameterTypeOutput {
   117  	return o.ApplyT(func(v *ParameterType) ParameterType {
   118  		if v != nil {
   119  			return *v
   120  		}
   121  		var ret ParameterType
   122  		return ret
   123  	}).(ParameterTypeOutput)
   124  }
   125  
   126  func (o ParameterTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
   127  	return o.ToStringPtrOutputWithContext(context.Background())
   128  }
   129  
   130  func (o ParameterTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
   131  	return o.ApplyTWithContext(ctx, func(_ context.Context, e *ParameterType) *string {
   132  		if e == nil {
   133  			return nil
   134  		}
   135  		v := string(*e)
   136  		return &v
   137  	}).(pulumi.StringPtrOutput)
   138  }
   139  
   140  // ParameterTypeInput is an input type that accepts values of the ParameterType enum
   141  // A concrete instance of `ParameterTypeInput` can be one of the following:
   142  //
   143  //	ParameterTypeString
   144  //	ParameterTypeStringList
   145  //	ParameterTypeSecureString
   146  type ParameterTypeInput interface {
   147  	pulumi.Input
   148  
   149  	ToParameterTypeOutput() ParameterTypeOutput
   150  	ToParameterTypeOutputWithContext(context.Context) ParameterTypeOutput
   151  }
   152  
   153  var parameterTypePtrType = reflect.TypeOf((**ParameterType)(nil)).Elem()
   154  
   155  type ParameterTypePtrInput interface {
   156  	pulumi.Input
   157  
   158  	ToParameterTypePtrOutput() ParameterTypePtrOutput
   159  	ToParameterTypePtrOutputWithContext(context.Context) ParameterTypePtrOutput
   160  }
   161  
   162  type parameterTypePtr string
   163  
   164  func ParameterTypePtr(v string) ParameterTypePtrInput {
   165  	return (*parameterTypePtr)(&v)
   166  }
   167  
   168  func (*parameterTypePtr) ElementType() reflect.Type {
   169  	return parameterTypePtrType
   170  }
   171  
   172  func (in *parameterTypePtr) ToParameterTypePtrOutput() ParameterTypePtrOutput {
   173  	return pulumi.ToOutput(in).(ParameterTypePtrOutput)
   174  }
   175  
   176  func (in *parameterTypePtr) ToParameterTypePtrOutputWithContext(ctx context.Context) ParameterTypePtrOutput {
   177  	return pulumi.ToOutputWithContext(ctx, in).(ParameterTypePtrOutput)
   178  }
   179  
   180  func init() {
   181  	pulumi.RegisterInputType(reflect.TypeOf((*ParameterTypeInput)(nil)).Elem(), ParameterType("String"))
   182  	pulumi.RegisterInputType(reflect.TypeOf((*ParameterTypePtrInput)(nil)).Elem(), ParameterType("String"))
   183  	pulumi.RegisterOutputType(ParameterTypeOutput{})
   184  	pulumi.RegisterOutputType(ParameterTypePtrOutput{})
   185  }