func NewDefaultServiceOperationsThrottleConfig()

in pkg/aws/throttle/defaults.go [11:90]


func NewDefaultServiceOperationsThrottleConfig() *ServiceOperationsThrottleConfig {
	return &ServiceOperationsThrottleConfig{
		value: map[string][]throttleConfig{
			appmesh.ServiceID: {
				{
					operationPtn: regexp.MustCompile("^Describe|List"),
					r:            rate.Limit(40),
					burst:        5,
				},
				{
					operationPtn: regexp.MustCompile("^Create|Update|Delete"),
					r:            rate.Limit(8),
					burst:        5,
				},
			},
			servicediscovery.ServiceID: {
				{
					operationPtn: regexp.MustCompile("^ListNamespaces"),
					r:            rate.Limit(1),
					burst:        8,
				},
				{
					operationPtn: regexp.MustCompile("^ListServices"),
					r:            rate.Limit(1),
					burst:        8,
				},
				{
					operationPtn: regexp.MustCompile("^GetService"),
					r:            rate.Limit(4),
					burst:        40,
				},
				{
					operationPtn: regexp.MustCompile("^CreateService"),
					r:            rate.Limit(8),
					burst:        80,
				},
				{
					operationPtn: regexp.MustCompile("^DeleteService"),
					r:            rate.Limit(8),
					burst:        80,
				},
				{
					operationPtn: regexp.MustCompile("^ListInstances"),
					r:            rate.Limit(40),
					burst:        400,
				},
				{
					operationPtn: regexp.MustCompile("^RegisterInstance"),
					r:            rate.Limit(4),
					burst:        80,
				},
				{
					operationPtn: regexp.MustCompile("^DeregisterInstance"),
					r:            rate.Limit(4),
					burst:        80,
				},
				{
					operationPtn: regexp.MustCompile("^GetInstance"),
					r:            rate.Limit(16),
					burst:        80,
				},
				{
					operationPtn: regexp.MustCompile("^GetOperation"),
					r:            rate.Limit(4),
					burst:        40,
				},
				{
					operationPtn: regexp.MustCompile("^GetInstancesHealthStatus"),
					r:            rate.Limit(80),
					burst:        80,
				},
				{
					operationPtn: regexp.MustCompile("^UpdateInstanceCustomHealthStatus"),
					r:            rate.Limit(240),
					burst:        240,
				},
			},
		},
	}
}