AWS SDK

AWS SDK

rev. beb16d68a5a725699d9777bc51c61fafe31c4a1d..7c0de8484ae62ced58dadda4eb73352c5e79105a (ignoring whitespace)

Files changed:

tmp-codegen-diff/services/sts/build/tmp/jvmJar/MANIFEST.MF

@@ -1,0 +2,0 @@
    1         -
Manifest-Version: 1.0
    2         -

tmp-codegen-diff/services/sts/generated-src/main/kotlin/aws/sdk/kotlin/services/sts/DefaultStsClient.kt

@@ -718,718 +756,757 @@
  738    738   
    }
  739    739   
  740    740   
    /**
  741    741   
     * merge the defaults configured for the service into the execution context before firing off a request
  742    742   
     */
  743    743   
    private fun mergeServiceDefaults(ctx: ExecutionContext) {
  744    744   
        ctx.putIfAbsentNotNull(HttpOperationContext.AttemptTimeout, config.attemptTimeout)
  745    745   
        ctx.putIfAbsentNotNull(HttpOperationContext.CallTimeout, config.callTimeout)
  746    746   
        ctx.putIfAbsent(SdkClientOption.ClientName, config.clientName)
  747    747   
        ctx.putIfAbsent(SdkClientOption.LogMode, config.logMode)
         748  +
        ctx.putIfAbsent(SdkClientOption.LogRedactedHeaders, config.logRedactedHeaders)
  748    749   
        ctx.putIfAbsentNotNull(AwsAttributes.Region, config.region)
  749    750   
        ctx.putIfAbsentNotNull(AwsSigningAttributes.SigningRegion, config.region)
  750    751   
        ctx.putIfAbsent(AwsSigningAttributes.SigningService, "sts")
  751    752   
        ctx.putIfAbsent(AwsSigningAttributes.CredentialsProvider, config.credentialsProvider)
  752    753   
        ctx.putIfAbsentNotNull(AwsSdkClientOption.ApplicationId, config.applicationId)
  753    754   
        ctx.putIfAbsentNotNull(AwsSigningAttributes.ConfigSigningRegionSet, config.sigV4aSigningRegionSet)
  754    755   
    }
  755    756   
  756    757   
}

tmp-codegen-diff/services/sts/generated-src/main/kotlin/aws/sdk/kotlin/services/sts/StsClient.kt

@@ -102,102 +186,188 @@
  122    122   
        override val regionProvider: RegionProvider = builder.regionProvider ?: DefaultRegionProviderChain()
  123    123   
        override val attemptTimeout: Duration? = builder.attemptTimeout
  124    124   
        override val authSchemePreference: kotlin.collections.List<aws.smithy.kotlin.runtime.auth.AuthSchemeId>? = builder.authSchemePreference
  125    125   
        override val authSchemes: kotlin.collections.List<aws.smithy.kotlin.runtime.http.auth.AuthScheme> = builder.authSchemes
  126    126   
        override val callTimeout: Duration? = builder.callTimeout
  127    127   
        override val credentialsProvider: CredentialsProvider = builder.credentialsProvider ?: DefaultChainCredentialsProvider(httpClient = httpClient, region = region).manage()
  128    128   
        public val endpointProvider: StsEndpointProvider = builder.endpointProvider ?: DefaultStsEndpointProvider()
  129    129   
        public val endpointUrl: Url? = builder.endpointUrl
  130    130   
        override val interceptors: kotlin.collections.List<aws.smithy.kotlin.runtime.http.interceptors.HttpInterceptor> = builder.interceptors
  131    131   
        override val logMode: LogMode = builder.logMode ?: LogMode.Default
         132  +
        override val logRedactedHeaders: kotlin.collections.Set<kotlin.String> = builder.logRedactedHeaders ?: emptySet()
  132    133   
        override val retryPolicy: RetryPolicy<Any?> = builder.retryPolicy ?: AwsRetryPolicy.Default
  133    134   
        override val sigV4aSigningRegionSet: kotlin.collections.Set<kotlin.String>? = builder.sigV4aSigningRegionSet
  134    135   
        override val telemetryProvider: TelemetryProvider = builder.telemetryProvider ?: TelemetryProvider.Global
  135    136   
        override val useDualStack: Boolean = builder.useDualStack ?: false
  136    137   
        override val useFips: Boolean = builder.useFips ?: false
  137    138   
        override val applicationId: String? = builder.applicationId
  138    139   
        public val authSchemeProvider: StsAuthSchemeProvider = builder.authSchemeProvider ?: DefaultStsAuthSchemeProvider(authSchemePreference = authSchemePreference)
  139    140   
        public companion object {
  140    141   
            public inline operator fun invoke(block: Builder.() -> kotlin.Unit): Config = Builder().apply(block).build()
  141    142   
        }
  142    143   
  143    144   
        public fun toBuilder(): Builder = Builder().apply {
  144    145   
            clientName = this@Config.clientName
  145    146   
            region = this@Config.region
  146    147   
            regionProvider = this@Config.regionProvider
  147    148   
            attemptTimeout = this@Config.attemptTimeout
  148    149   
            authSchemePreference = this@Config.authSchemePreference
  149    150   
            authSchemes = this@Config.authSchemes
  150    151   
            callTimeout = this@Config.callTimeout
  151    152   
            credentialsProvider = this@Config.credentialsProvider
  152    153   
            endpointProvider = this@Config.endpointProvider
  153    154   
            endpointUrl = this@Config.endpointUrl
  154    155   
            httpClient = this@Config.httpClient
  155    156   
            interceptors = this@Config.interceptors.toMutableList()
  156    157   
            logMode = this@Config.logMode
         158  +
            logRedactedHeaders = this@Config.logRedactedHeaders
  157    159   
            retryPolicy = this@Config.retryPolicy
  158    160   
            retryStrategy = this@Config.retryStrategy
  159    161   
            sigV4aSigningRegionSet = this@Config.sigV4aSigningRegionSet
  160    162   
            telemetryProvider = this@Config.telemetryProvider
  161    163   
            useDualStack = this@Config.useDualStack
  162    164   
            useFips = this@Config.useFips
  163    165   
            applicationId = this@Config.applicationId
  164    166   
            authSchemeProvider = this@Config.authSchemeProvider
  165    167   
        }
  166    168   
@@ -241,243 +300,309 @@
  261    263   
             * raw requests or responses. Use this setting to opt-in to additional debug logging.
  262    264   
             *
  263    265   
             * This can be used to configure logging of requests, responses, retries, etc of SDK clients.
  264    266   
             *
  265    267   
             * **NOTE**: Logging of raw requests or responses may leak sensitive information! It may also have
  266    268   
             * performance considerations when dumping the request/response body. This is primarily a tool for
  267    269   
             * debug purposes.
  268    270   
             */
  269    271   
            override var logMode: LogMode? = null
  270    272   
         273  +
            /**
         274  +
             * Set of HTTP header names whose values will be replaced with "<REDACTED>" in
         275  +
             * request/response debug logging. Matching is case-insensitive. Empty by default
         276  +
             * (no headers are redacted).
         277  +
             */
         278  +
            override var logRedactedHeaders: kotlin.collections.Set<kotlin.String>? = null
         279  +
  271    280   
            /**
  272    281   
             * The policy to use for evaluating operation results and determining whether/how to retry.
  273    282   
             */
  274    283   
            override var retryPolicy: RetryPolicy<Any?>? = null
  275    284   
  276    285   
            /**
  277    286   
             * The set of regions to use when signing a request with SigV4a. If not provided this will automatically be set by the SDK.
  278    287   
             */
  279    288   
            override var sigV4aSigningRegionSet: kotlin.collections.Set<kotlin.String>? = null
  280    289