idx
int64
0
41.8k
question
stringlengths
64
85.5k
target
stringlengths
8
1.22k
100
func ( s * ProjectEnvironment ) SetImagePullCredentialsType ( v string ) * ProjectEnvironment { s . ImagePullCredentialsType = & v return s }
SetImagePullCredentialsType sets the ImagePullCredentialsType field s value .
101
func ( s * ProjectEnvironment ) SetPrivilegedMode ( v bool ) * ProjectEnvironment { s . PrivilegedMode = & v return s }
SetPrivilegedMode sets the PrivilegedMode field s value .
102
func ( s * ProjectEnvironment ) SetRegistryCredential ( v * RegistryCredential ) * ProjectEnvironment { s . RegistryCredential = v return s }
SetRegistryCredential sets the RegistryCredential field s value .
103
func ( s * ProjectSource ) SetAuth ( v * SourceAuth ) * ProjectSource { s . Auth = v return s }
SetAuth sets the Auth field s value .
104
func ( s * ProjectSource ) SetBuildspec ( v string ) * ProjectSource { s . Buildspec = & v return s }
SetBuildspec sets the Buildspec field s value .
105
func ( s * ProjectSource ) SetGitCloneDepth ( v int64 ) * ProjectSource { s . GitCloneDepth = & v return s }
SetGitCloneDepth sets the GitCloneDepth field s value .
106
func ( s * ProjectSource ) SetGitSubmodulesConfig ( v * GitSubmodulesConfig ) * ProjectSource { s . GitSubmodulesConfig = v return s }
SetGitSubmodulesConfig sets the GitSubmodulesConfig field s value .
107
func ( s * ProjectSource ) SetInsecureSsl ( v bool ) * ProjectSource { s . InsecureSsl = & v return s }
SetInsecureSsl sets the InsecureSsl field s value .
108
func ( s * ProjectSource ) SetReportBuildStatus ( v bool ) * ProjectSource { s . ReportBuildStatus = & v return s }
SetReportBuildStatus sets the ReportBuildStatus field s value .
109
func ( s * RegistryCredential ) SetCredentialProvider ( v string ) * RegistryCredential { s . CredentialProvider = & v return s }
SetCredentialProvider sets the CredentialProvider field s value .
110
func ( s * StartBuildInput ) SetArtifactsOverride ( v * ProjectArtifacts ) * StartBuildInput { s . ArtifactsOverride = v return s }
SetArtifactsOverride sets the ArtifactsOverride field s value .
111
func ( s * StartBuildInput ) SetBuildspecOverride ( v string ) * StartBuildInput { s . BuildspecOverride = & v return s }
SetBuildspecOverride sets the BuildspecOverride field s value .
112
func ( s * StartBuildInput ) SetCacheOverride ( v * ProjectCache ) * StartBuildInput { s . CacheOverride = v return s }
SetCacheOverride sets the CacheOverride field s value .
113
func ( s * StartBuildInput ) SetCertificateOverride ( v string ) * StartBuildInput { s . CertificateOverride = & v return s }
SetCertificateOverride sets the CertificateOverride field s value .
114
func ( s * StartBuildInput ) SetComputeTypeOverride ( v string ) * StartBuildInput { s . ComputeTypeOverride = & v return s }
SetComputeTypeOverride sets the ComputeTypeOverride field s value .
115
func ( s * StartBuildInput ) SetEnvironmentTypeOverride ( v string ) * StartBuildInput { s . EnvironmentTypeOverride = & v return s }
SetEnvironmentTypeOverride sets the EnvironmentTypeOverride field s value .
116
func ( s * StartBuildInput ) SetEnvironmentVariablesOverride ( v [ ] * EnvironmentVariable ) * StartBuildInput { s . EnvironmentVariablesOverride = v return s }
SetEnvironmentVariablesOverride sets the EnvironmentVariablesOverride field s value .
117
func ( s * StartBuildInput ) SetGitCloneDepthOverride ( v int64 ) * StartBuildInput { s . GitCloneDepthOverride = & v return s }
SetGitCloneDepthOverride sets the GitCloneDepthOverride field s value .
118
func ( s * StartBuildInput ) SetGitSubmodulesConfigOverride ( v * GitSubmodulesConfig ) * StartBuildInput { s . GitSubmodulesConfigOverride = v return s }
SetGitSubmodulesConfigOverride sets the GitSubmodulesConfigOverride field s value .
119
func ( s * StartBuildInput ) SetImageOverride ( v string ) * StartBuildInput { s . ImageOverride = & v return s }
SetImageOverride sets the ImageOverride field s value .
120
func ( s * StartBuildInput ) SetImagePullCredentialsTypeOverride ( v string ) * StartBuildInput { s . ImagePullCredentialsTypeOverride = & v return s }
SetImagePullCredentialsTypeOverride sets the ImagePullCredentialsTypeOverride field s value .
121
func ( s * StartBuildInput ) SetInsecureSslOverride ( v bool ) * StartBuildInput { s . InsecureSslOverride = & v return s }
SetInsecureSslOverride sets the InsecureSslOverride field s value .
122
func ( s * StartBuildInput ) SetLogsConfigOverride ( v * LogsConfig ) * StartBuildInput { s . LogsConfigOverride = v return s }
SetLogsConfigOverride sets the LogsConfigOverride field s value .
123
func ( s * StartBuildInput ) SetPrivilegedModeOverride ( v bool ) * StartBuildInput { s . PrivilegedModeOverride = & v return s }
SetPrivilegedModeOverride sets the PrivilegedModeOverride field s value .
124
func ( s * StartBuildInput ) SetQueuedTimeoutInMinutesOverride ( v int64 ) * StartBuildInput { s . QueuedTimeoutInMinutesOverride = & v return s }
SetQueuedTimeoutInMinutesOverride sets the QueuedTimeoutInMinutesOverride field s value .
125
func ( s * StartBuildInput ) SetRegistryCredentialOverride ( v * RegistryCredential ) * StartBuildInput { s . RegistryCredentialOverride = v return s }
SetRegistryCredentialOverride sets the RegistryCredentialOverride field s value .
126
func ( s * StartBuildInput ) SetReportBuildStatusOverride ( v bool ) * StartBuildInput { s . ReportBuildStatusOverride = & v return s }
SetReportBuildStatusOverride sets the ReportBuildStatusOverride field s value .
127
func ( s * StartBuildInput ) SetSecondaryArtifactsOverride ( v [ ] * ProjectArtifacts ) * StartBuildInput { s . SecondaryArtifactsOverride = v return s }
SetSecondaryArtifactsOverride sets the SecondaryArtifactsOverride field s value .
128
func ( s * StartBuildInput ) SetSecondarySourcesOverride ( v [ ] * ProjectSource ) * StartBuildInput { s . SecondarySourcesOverride = v return s }
SetSecondarySourcesOverride sets the SecondarySourcesOverride field s value .
129
func ( s * StartBuildInput ) SetSecondarySourcesVersionOverride ( v [ ] * ProjectSourceVersion ) * StartBuildInput { s . SecondarySourcesVersionOverride = v return s }
SetSecondarySourcesVersionOverride sets the SecondarySourcesVersionOverride field s value .
130
func ( s * StartBuildInput ) SetServiceRoleOverride ( v string ) * StartBuildInput { s . ServiceRoleOverride = & v return s }
SetServiceRoleOverride sets the ServiceRoleOverride field s value .
131
func ( s * StartBuildInput ) SetSourceAuthOverride ( v * SourceAuth ) * StartBuildInput { s . SourceAuthOverride = v return s }
SetSourceAuthOverride sets the SourceAuthOverride field s value .
132
func ( s * StartBuildInput ) SetSourceLocationOverride ( v string ) * StartBuildInput { s . SourceLocationOverride = & v return s }
SetSourceLocationOverride sets the SourceLocationOverride field s value .
133
func ( s * StartBuildInput ) SetSourceTypeOverride ( v string ) * StartBuildInput { s . SourceTypeOverride = & v return s }
SetSourceTypeOverride sets the SourceTypeOverride field s value .
134
func ( s * StartBuildInput ) SetTimeoutInMinutesOverride ( v int64 ) * StartBuildInput { s . TimeoutInMinutesOverride = & v return s }
SetTimeoutInMinutesOverride sets the TimeoutInMinutesOverride field s value .
135
func ( s * UpdateWebhookInput ) SetRotateSecret ( v bool ) * UpdateWebhookInput { s . RotateSecret = & v return s }
SetRotateSecret sets the RotateSecret field s value .
136
func ( s * Webhook ) SetLastModifiedSecret ( v time . Time ) * Webhook { s . LastModifiedSecret = & v return s }
SetLastModifiedSecret sets the LastModifiedSecret field s value .
137
func ( s * Webhook ) SetPayloadUrl ( v string ) * Webhook { s . PayloadUrl = & v return s }
SetPayloadUrl sets the PayloadUrl field s value .
138
func ( s * WebhookFilter ) SetExcludeMatchedPattern ( v bool ) * WebhookFilter { s . ExcludeMatchedPattern = & v return s }
SetExcludeMatchedPattern sets the ExcludeMatchedPattern field s value .
139
func NewConnectionStringBuilder ( endpoint , region , dbUser , dbName string , creds * credentials . Credentials ) ConnectionStringBuilder { return ConnectionStringBuilder { dbName : dbName , endpoint : endpoint , region : region , user : dbUser , creds : creds , } }
NewConnectionStringBuilder will return an ConnectionStringBuilder
140
func ( b ConnectionStringBuilder ) WithEndpoint ( endpoint string ) ConnectionStringBuilder { b . endpoint = endpoint return b }
WithEndpoint will return a builder with the given endpoint
141
func ( b ConnectionStringBuilder ) WithRegion ( region string ) ConnectionStringBuilder { b . region = region return b }
WithRegion will return a builder with the given region
142
func ( b ConnectionStringBuilder ) WithUser ( user string ) ConnectionStringBuilder { b . user = user return b }
WithUser will return a builder with the given user
143
func ( b ConnectionStringBuilder ) WithDBName ( dbName string ) ConnectionStringBuilder { b . dbName = dbName return b }
WithDBName will return a builder with the given database name
144
func ( b ConnectionStringBuilder ) WithFormat ( f ConnectionFormat ) ConnectionStringBuilder { b . connectFormat = f return b }
WithFormat will return a builder with the given connection format
145
func ( s * Alarm ) SetAlarmARN ( v string ) * Alarm { s . AlarmARN = & v return s }
SetAlarmARN sets the AlarmARN field s value .
146
func ( s * BatchDeleteScheduledActionOutput ) SetFailedScheduledActions ( v [ ] * FailedScheduledUpdateGroupActionRequest ) * BatchDeleteScheduledActionOutput { s . FailedScheduledActions = v return s }
SetFailedScheduledActions sets the FailedScheduledActions field s value .
147
func ( s * BatchPutScheduledUpdateGroupActionOutput ) SetFailedScheduledUpdateGroupActions ( v [ ] * FailedScheduledUpdateGroupActionRequest ) * BatchPutScheduledUpdateGroupActionOutput { s . FailedScheduledUpdateGroupActions = v return s }
SetFailedScheduledUpdateGroupActions sets the FailedScheduledUpdateGroupActions field s value .
148
func ( s * BlockDeviceMapping ) SetVirtualName ( v string ) * BlockDeviceMapping { s . VirtualName = & v return s }
SetVirtualName sets the VirtualName field s value .
149
func ( s * CompleteLifecycleActionInput ) SetLifecycleActionResult ( v string ) * CompleteLifecycleActionInput { s . LifecycleActionResult = & v return s }
SetLifecycleActionResult sets the LifecycleActionResult field s value .
150
func ( s * CreateAutoScalingGroupInput ) SetLifecycleHookSpecificationList ( v [ ] * LifecycleHookSpecification ) * CreateAutoScalingGroupInput { s . LifecycleHookSpecificationList = v return s }
SetLifecycleHookSpecificationList sets the LifecycleHookSpecificationList field s value .
151
func ( s * DescribeAccountLimitsOutput ) SetMaxNumberOfAutoScalingGroups ( v int64 ) * DescribeAccountLimitsOutput { s . MaxNumberOfAutoScalingGroups = & v return s }
SetMaxNumberOfAutoScalingGroups sets the MaxNumberOfAutoScalingGroups field s value .
152
func ( s * DescribeAccountLimitsOutput ) SetMaxNumberOfLaunchConfigurations ( v int64 ) * DescribeAccountLimitsOutput { s . MaxNumberOfLaunchConfigurations = & v return s }
SetMaxNumberOfLaunchConfigurations sets the MaxNumberOfLaunchConfigurations field s value .
153
func ( s * DescribeAccountLimitsOutput ) SetNumberOfAutoScalingGroups ( v int64 ) * DescribeAccountLimitsOutput { s . NumberOfAutoScalingGroups = & v return s }
SetNumberOfAutoScalingGroups sets the NumberOfAutoScalingGroups field s value .
154
func ( s * DescribeAccountLimitsOutput ) SetNumberOfLaunchConfigurations ( v int64 ) * DescribeAccountLimitsOutput { s . NumberOfLaunchConfigurations = & v return s }
SetNumberOfLaunchConfigurations sets the NumberOfLaunchConfigurations field s value .
155
func ( s * DescribeAdjustmentTypesOutput ) SetAdjustmentTypes ( v [ ] * AdjustmentType ) * DescribeAdjustmentTypesOutput { s . AdjustmentTypes = v return s }
SetAdjustmentTypes sets the AdjustmentTypes field s value .
156
func ( s * DescribeAutoScalingInstancesOutput ) SetAutoScalingInstances ( v [ ] * InstanceDetails ) * DescribeAutoScalingInstancesOutput { s . AutoScalingInstances = v return s }
SetAutoScalingInstances sets the AutoScalingInstances field s value .
157
func ( s * DescribeAutoScalingNotificationTypesOutput ) SetAutoScalingNotificationTypes ( v [ ] * string ) * DescribeAutoScalingNotificationTypesOutput { s . AutoScalingNotificationTypes = v return s }
SetAutoScalingNotificationTypes sets the AutoScalingNotificationTypes field s value .
158
func ( s * DescribeLaunchConfigurationsInput ) SetLaunchConfigurationNames ( v [ ] * string ) * DescribeLaunchConfigurationsInput { s . LaunchConfigurationNames = v return s }
SetLaunchConfigurationNames sets the LaunchConfigurationNames field s value .
159
func ( s * DescribeLifecycleHookTypesOutput ) SetLifecycleHookTypes ( v [ ] * string ) * DescribeLifecycleHookTypesOutput { s . LifecycleHookTypes = v return s }
SetLifecycleHookTypes sets the LifecycleHookTypes field s value .
160
func ( s * DescribeLifecycleHooksInput ) SetLifecycleHookNames ( v [ ] * string ) * DescribeLifecycleHooksInput { s . LifecycleHookNames = v return s }
SetLifecycleHookNames sets the LifecycleHookNames field s value .
161
func ( s * DescribeLifecycleHooksOutput ) SetLifecycleHooks ( v [ ] * LifecycleHook ) * DescribeLifecycleHooksOutput { s . LifecycleHooks = v return s }
SetLifecycleHooks sets the LifecycleHooks field s value .
162
func ( s * DescribeLoadBalancerTargetGroupsOutput ) SetLoadBalancerTargetGroups ( v [ ] * LoadBalancerTargetGroupState ) * DescribeLoadBalancerTargetGroupsOutput { s . LoadBalancerTargetGroups = v return s }
SetLoadBalancerTargetGroups sets the LoadBalancerTargetGroups field s value .
163
func ( s * DescribeMetricCollectionTypesOutput ) SetGranularities ( v [ ] * MetricGranularityType ) * DescribeMetricCollectionTypesOutput { s . Granularities = v return s }
SetGranularities sets the Granularities field s value .
164
func ( s * DescribeNotificationConfigurationsOutput ) SetNotificationConfigurations ( v [ ] * NotificationConfiguration ) * DescribeNotificationConfigurationsOutput { s . NotificationConfigurations = v return s }
SetNotificationConfigurations sets the NotificationConfigurations field s value .
165
func ( s * DescribeScalingActivitiesInput ) SetActivityIds ( v [ ] * string ) * DescribeScalingActivitiesInput { s . ActivityIds = v return s }
SetActivityIds sets the ActivityIds field s value .
166
func ( s * DescribeScalingProcessTypesOutput ) SetProcesses ( v [ ] * ProcessType ) * DescribeScalingProcessTypesOutput { s . Processes = v return s }
SetProcesses sets the Processes field s value .
167
func ( s * DescribeTerminationPolicyTypesOutput ) SetTerminationPolicyTypes ( v [ ] * string ) * DescribeTerminationPolicyTypesOutput { s . TerminationPolicyTypes = v return s }
SetTerminationPolicyTypes sets the TerminationPolicyTypes field s value .
168
func ( s * ExecutePolicyInput ) SetBreachThreshold ( v float64 ) * ExecutePolicyInput { s . BreachThreshold = & v return s }
SetBreachThreshold sets the BreachThreshold field s value .
169
func ( s * Group ) SetAutoScalingGroupARN ( v string ) * Group { s . AutoScalingGroupARN = & v return s }
SetAutoScalingGroupARN sets the AutoScalingGroupARN field s value .
170
func ( s * Group ) SetEnabledMetrics ( v [ ] * EnabledMetric ) * Group { s . EnabledMetrics = v return s }
SetEnabledMetrics sets the EnabledMetrics field s value .
171
func ( s * Group ) SetSuspendedProcesses ( v [ ] * SuspendedProcess ) * Group { s . SuspendedProcesses = v return s }
SetSuspendedProcesses sets the SuspendedProcesses field s value .
172
func ( s * InstancesDistribution ) SetOnDemandAllocationStrategy ( v string ) * InstancesDistribution { s . OnDemandAllocationStrategy = & v return s }
SetOnDemandAllocationStrategy sets the OnDemandAllocationStrategy field s value .
173
func ( s * InstancesDistribution ) SetOnDemandBaseCapacity ( v int64 ) * InstancesDistribution { s . OnDemandBaseCapacity = & v return s }
SetOnDemandBaseCapacity sets the OnDemandBaseCapacity field s value .
174
func ( s * InstancesDistribution ) SetOnDemandPercentageAboveBaseCapacity ( v int64 ) * InstancesDistribution { s . OnDemandPercentageAboveBaseCapacity = & v return s }
SetOnDemandPercentageAboveBaseCapacity sets the OnDemandPercentageAboveBaseCapacity field s value .
175
func ( s * InstancesDistribution ) SetSpotAllocationStrategy ( v string ) * InstancesDistribution { s . SpotAllocationStrategy = & v return s }
SetSpotAllocationStrategy sets the SpotAllocationStrategy field s value .
176
func ( s * InstancesDistribution ) SetSpotInstancePools ( v int64 ) * InstancesDistribution { s . SpotInstancePools = & v return s }
SetSpotInstancePools sets the SpotInstancePools field s value .
177
func ( s * InstancesDistribution ) SetSpotMaxPrice ( v string ) * InstancesDistribution { s . SpotMaxPrice = & v return s }
SetSpotMaxPrice sets the SpotMaxPrice field s value .
178
func ( s * LaunchConfiguration ) SetLaunchConfigurationARN ( v string ) * LaunchConfiguration { s . LaunchConfigurationARN = & v return s }
SetLaunchConfigurationARN sets the LaunchConfigurationARN field s value .
179
func ( s * LaunchTemplate ) SetLaunchTemplateSpecification ( v * LaunchTemplateSpecification ) * LaunchTemplate { s . LaunchTemplateSpecification = v return s }
SetLaunchTemplateSpecification sets the LaunchTemplateSpecification field s value .
180
func ( s * LaunchTemplateSpecification ) SetLaunchTemplateId ( v string ) * LaunchTemplateSpecification { s . LaunchTemplateId = & v return s }
SetLaunchTemplateId sets the LaunchTemplateId field s value .
181
func ( s * LaunchTemplateSpecification ) SetLaunchTemplateName ( v string ) * LaunchTemplateSpecification { s . LaunchTemplateName = & v return s }
SetLaunchTemplateName sets the LaunchTemplateName field s value .
182
func ( s * LifecycleHook ) SetGlobalTimeout ( v int64 ) * LifecycleHook { s . GlobalTimeout = & v return s }
SetGlobalTimeout sets the GlobalTimeout field s value .
183
func ( s * LoadBalancerTargetGroupState ) SetLoadBalancerTargetGroupARN ( v string ) * LoadBalancerTargetGroupState { s . LoadBalancerTargetGroupARN = & v return s }
SetLoadBalancerTargetGroupARN sets the LoadBalancerTargetGroupARN field s value .
184
func ( s * MixedInstancesPolicy ) SetInstancesDistribution ( v * InstancesDistribution ) * MixedInstancesPolicy { s . InstancesDistribution = v return s }
SetInstancesDistribution sets the InstancesDistribution field s value .
185
func ( s * PredefinedMetricSpecification ) SetPredefinedMetricType ( v string ) * PredefinedMetricSpecification { s . PredefinedMetricType = & v return s }
SetPredefinedMetricType sets the PredefinedMetricType field s value .
186
func ( s * PutNotificationConfigurationInput ) SetNotificationTypes ( v [ ] * string ) * PutNotificationConfigurationInput { s . NotificationTypes = v return s }
SetNotificationTypes sets the NotificationTypes field s value .
187
func ( s * ScalingProcessQuery ) SetScalingProcesses ( v [ ] * string ) * ScalingProcessQuery { s . ScalingProcesses = v return s }
SetScalingProcesses sets the ScalingProcesses field s value .
188
func ( s * SetInstanceHealthInput ) SetShouldRespectGracePeriod ( v bool ) * SetInstanceHealthInput { s . ShouldRespectGracePeriod = & v return s }
SetShouldRespectGracePeriod sets the ShouldRespectGracePeriod field s value .
189
func ( s * StepAdjustment ) SetMetricIntervalLowerBound ( v float64 ) * StepAdjustment { s . MetricIntervalLowerBound = & v return s }
SetMetricIntervalLowerBound sets the MetricIntervalLowerBound field s value .
190
func ( s * StepAdjustment ) SetMetricIntervalUpperBound ( v float64 ) * StepAdjustment { s . MetricIntervalUpperBound = & v return s }
SetMetricIntervalUpperBound sets the MetricIntervalUpperBound field s value .
191
func ( s * SuspendedProcess ) SetSuspensionReason ( v string ) * SuspendedProcess { s . SuspensionReason = & v return s }
SetSuspensionReason sets the SuspensionReason field s value .
192
func ( s * TerminateInstanceInAutoScalingGroupOutput ) SetActivity ( v * Activity ) * TerminateInstanceInAutoScalingGroupOutput { s . Activity = v return s }
SetActivity sets the Activity field s value .
193
func newCommentToken ( b [ ] rune ) ( Token , int , error ) { i := 0 for ; i < len ( b ) ; i ++ { if b [ i ] == '\n' { break } if len ( b ) - i > 2 && b [ i ] == '\r' && b [ i + 1 ] == '\n' { break } } return newToken ( TokenComment , b [ : i ] , NoneType ) , i , nil }
newCommentToken will create a comment token and return how many bytes were read .
194
func StdinTokenProvider ( ) ( string , error ) { var v string fmt . Fprintf ( os . Stderr , "Assume Role MFA token code: " ) _ , err := fmt . Scanln ( & v ) return v , err }
StdinTokenProvider will prompt on stderr and read from stdin for a string value . An error is returned if reading from stdin fails . Use this function go read MFA tokens from stdin . The function makes no attempt to make atomic prompts from stdin across multiple gorouties . Using StdinTokenProvider with multiple Assume...
195
func NewCredentials ( c client . ConfigProvider , roleARN string , options ... func ( * AssumeRoleProvider ) ) * credentials . Credentials { p := & AssumeRoleProvider { Client : sts . New ( c ) , RoleARN : roleARN , Duration : DefaultDuration , } for _ , option := range options { option ( p ) } return credentials...
NewCredentials returns a pointer to a new Credentials object wrapping the AssumeRoleProvider . The credentials will expire every 15 minutes and the role will be named after a nanosecond timestamp of this operation . Takes a Config provider to create the STS client . The ConfigProvider is satisfied by the session . Sess...
196
func NewCredentialsWithClient ( svc AssumeRoler , roleARN string , options ... func ( * AssumeRoleProvider ) ) * credentials . Credentials { p := & AssumeRoleProvider { Client : svc , RoleARN : roleARN , Duration : DefaultDuration , } for _ , option := range options { option ( p ) } return credentials . NewCreden...
NewCredentialsWithClient returns a pointer to a new Credentials object wrapping the AssumeRoleProvider . The credentials will expire every 15 minutes and the role will be named after a nanosecond timestamp of this operation . Takes an AssumeRoler which can be satisfied by the STS client . It is safe to share the return...
197
func ( p * AssumeRoleProvider ) Retrieve ( ) ( credentials . Value , error ) { if p . RoleSessionName == "" { p . RoleSessionName = fmt . Sprintf ( "%d" , time . Now ( ) . UTC ( ) . UnixNano ( ) ) } if p . Duration == 0 { p . Duration = DefaultDuration } jitter := time . Duration ( sdkrand . SeededRand . Float6...
Retrieve generates a new set of temporary credentials using STS .
198
func SleepWithContext ( ctx Context , dur time . Duration ) error { t := time . NewTimer ( dur ) defer t . Stop ( ) select { case <- t . C : break case <- ctx . Done ( ) : return ctx . Err ( ) } return nil }
SleepWithContext will wait for the timer duration to expire or the context is canceled . Which ever happens first . If the context is canceled the Context s error will be returned . Expects Context to always return a non - nil error if the Done channel is closed .
199
func ( s * AddInstanceGroupsOutput ) SetInstanceGroupIds ( v [ ] * string ) * AddInstanceGroupsOutput { s . InstanceGroupIds = v return s }
SetInstanceGroupIds sets the InstanceGroupIds field s value .