Interface CreateInstrumentationConfigurationRequest.Builder
- All Superinterfaces:
ApplicationSignalsRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<CreateInstrumentationConfigurationRequest.Builder,,CreateInstrumentationConfigurationRequest> SdkBuilder<CreateInstrumentationConfigurationRequest.Builder,,CreateInstrumentationConfigurationRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateInstrumentationConfigurationRequest
-
Method Summary
Modifier and TypeMethodDescriptionattributeFilters(Collection<? extends Map<String, String>> attributeFilters) Client-side filters that target specific instances.attributeFilters(Map<String, String>... attributeFilters) Client-side filters that target specific instances.captureConfiguration(Consumer<CaptureConfiguration.Builder> captureConfiguration) Specifies what to capture when the instrumentation point is hit.captureConfiguration(CaptureConfiguration captureConfiguration) Specifies what to capture when the instrumentation point is hit.description(String description) An optional short description (up to 50 characters) that explains the purpose of this instrumentation.environment(String environment) The environment that the service is running in, such aseks:cluster-prod/namespaceorec2:production.For BREAKPOINT: optional, defaults to 24 hours, must be between 5 min and 24 hours.instrumentationType(String instrumentationType) Type of instrumentation: BREAKPOINT (temporary) or PROBE (permanent)instrumentationType(InstrumentationType instrumentationType) Type of instrumentation: BREAKPOINT (temporary) or PROBE (permanent)location(Consumer<Location.Builder> location) The location where instrumentation should be applied.The location where instrumentation should be applied.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The name of the service to instrument.signalType(String signalType) The telemetry signal type to emit for this instrumentation.signalType(DynamicInstrumentationSignalType signalType) The telemetry signal type to emit for this instrumentation.tags(Collection<Tag> tags) An optional list of key-value pairs to associate with the instrumentation configuration.tags(Consumer<Tag.Builder>... tags) An optional list of key-value pairs to associate with the instrumentation configuration.An optional list of key-value pairs to associate with the instrumentation configuration.Methods inherited from interface software.amazon.awssdk.services.applicationsignals.model.ApplicationSignalsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
instrumentationType
Type of instrumentation: BREAKPOINT (temporary) or PROBE (permanent)
- Parameters:
instrumentationType- Type of instrumentation: BREAKPOINT (temporary) or PROBE (permanent)- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instrumentationType
CreateInstrumentationConfigurationRequest.Builder instrumentationType(InstrumentationType instrumentationType) Type of instrumentation: BREAKPOINT (temporary) or PROBE (permanent)
- Parameters:
instrumentationType- Type of instrumentation: BREAKPOINT (temporary) or PROBE (permanent)- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
service
The name of the service to instrument. This should match the
service.nameresource attribute reported by the application.- Parameters:
service- The name of the service to instrument. This should match theservice.nameresource attribute reported by the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
The environment that the service is running in, such as
eks:cluster-prod/namespaceorec2:production.- Parameters:
environment- The environment that the service is running in, such aseks:cluster-prod/namespaceorec2:production.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
signalType
The telemetry signal type to emit for this instrumentation. The supported value is
SNAPSHOT.- Parameters:
signalType- The telemetry signal type to emit for this instrumentation. The supported value isSNAPSHOT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
signalType
CreateInstrumentationConfigurationRequest.Builder signalType(DynamicInstrumentationSignalType signalType) The telemetry signal type to emit for this instrumentation. The supported value is
SNAPSHOT.- Parameters:
signalType- The telemetry signal type to emit for this instrumentation. The supported value isSNAPSHOT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
location
The location where instrumentation should be applied. Specify a
CodeLocationfor code-level instrumentation.- Parameters:
location- The location where instrumentation should be applied. Specify aCodeLocationfor code-level instrumentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
default CreateInstrumentationConfigurationRequest.Builder location(Consumer<Location.Builder> location) The location where instrumentation should be applied. Specify a
This is a convenience method that creates an instance of theCodeLocationfor code-level instrumentation.Location.Builderavoiding the need to create one manually viaLocation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolocation(Location).- Parameters:
location- a consumer that will call methods onLocation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
An optional short description (up to 50 characters) that explains the purpose of this instrumentation.
- Parameters:
description- An optional short description (up to 50 characters) that explains the purpose of this instrumentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiresAt
For BREAKPOINT: optional, defaults to 24 hours, must be between 5 min and 24 hours. For PROBE: not supported. PROBE configurations are permanent and persist until explicitly deleted.
- Parameters:
expiresAt- For BREAKPOINT: optional, defaults to 24 hours, must be between 5 min and 24 hours. For PROBE: not supported. PROBE configurations are permanent and persist until explicitly deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributeFilters
CreateInstrumentationConfigurationRequest.Builder attributeFilters(Collection<? extends Map<String, String>> attributeFilters) Client-side filters that target specific instances. Each object in the array is AND-matched on its keys, and multiple objects are OR-matched to decide where to apply the instrumentation.
- Parameters:
attributeFilters- Client-side filters that target specific instances. Each object in the array is AND-matched on its keys, and multiple objects are OR-matched to decide where to apply the instrumentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributeFilters
CreateInstrumentationConfigurationRequest.Builder attributeFilters(Map<String, String>... attributeFilters) Client-side filters that target specific instances. Each object in the array is AND-matched on its keys, and multiple objects are OR-matched to decide where to apply the instrumentation.
- Parameters:
attributeFilters- Client-side filters that target specific instances. Each object in the array is AND-matched on its keys, and multiple objects are OR-matched to decide where to apply the instrumentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captureConfiguration
CreateInstrumentationConfigurationRequest.Builder captureConfiguration(CaptureConfiguration captureConfiguration) Specifies what to capture when the instrumentation point is hit. Specify
CodeCapturefor code-level capture settings.- Parameters:
captureConfiguration- Specifies what to capture when the instrumentation point is hit. SpecifyCodeCapturefor code-level capture settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
captureConfiguration
default CreateInstrumentationConfigurationRequest.Builder captureConfiguration(Consumer<CaptureConfiguration.Builder> captureConfiguration) Specifies what to capture when the instrumentation point is hit. Specify
This is a convenience method that creates an instance of theCodeCapturefor code-level capture settings.CaptureConfiguration.Builderavoiding the need to create one manually viaCaptureConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocaptureConfiguration(CaptureConfiguration).- Parameters:
captureConfiguration- a consumer that will call methods onCaptureConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
An optional list of key-value pairs to associate with the instrumentation configuration. Tags can help you organize and categorize your resources.
- Parameters:
tags- An optional list of key-value pairs to associate with the instrumentation configuration. Tags can help you organize and categorize your resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An optional list of key-value pairs to associate with the instrumentation configuration. Tags can help you organize and categorize your resources.
- Parameters:
tags- An optional list of key-value pairs to associate with the instrumentation configuration. Tags can help you organize and categorize your resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An optional list of key-value pairs to associate with the instrumentation configuration. Tags can help you organize and categorize your resources.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateInstrumentationConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateInstrumentationConfigurationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-