Skip to content

Commit 412e4d0

Browse files
committed
add MaxRetry config for cloudControlApi.
1 parent 223168d commit 412e4d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/cloudcontrol.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ func init() {
3737
registerCloudControl("AWS::NetworkFirewall::RuleGroup")
3838
}
3939

40+
const CloudControlAPiMaxRetries = 5
41+
4042
func NewListCloudControlResource(typeName string) func(*session.Session) ([]Resource, error) {
4143
return func(sess *session.Session) ([]Resource, error) {
42-
svc := cloudcontrolapi.New(sess)
44+
svc := cloudcontrolapi.New(sess, &aws.Config{MaxRetries: aws.Int(CloudControlAPiMaxRetries)})
4345

4446
params := &cloudcontrolapi.ListResourcesInput{
4547
TypeName: aws.String(typeName),

0 commit comments

Comments
 (0)