@@ -1826,7 +1826,7 @@ extension CloudFormationClient {
18261826
18271827 /// Performs the `DescribeChangeSetHooks` operation on the `CloudFormation` service.
18281828 ///
1829- /// Returns hook -related information for the change set and a list of changes that CloudFormation makes when you run the change set.
1829+ /// Returns Hook -related information for the change set and a list of changes that CloudFormation makes when you run the change set.
18301830 ///
18311831 /// - Parameter input: [no documentation found] (Type: `DescribeChangeSetHooksInput`)
18321832 ///
@@ -3429,6 +3429,74 @@ extension CloudFormationClient {
34293429 return try await op.execute(input: input)
34303430 }
34313431
3432+ /// Performs the `GetHookResult` operation on the `CloudFormation` service.
3433+ ///
3434+ /// Retrieves detailed information and remediation guidance for a Hook invocation result.
3435+ ///
3436+ /// - Parameter input: [no documentation found] (Type: `GetHookResultInput`)
3437+ ///
3438+ /// - Returns: [no documentation found] (Type: `GetHookResultOutput`)
3439+ ///
3440+ /// - Throws: One of the exceptions listed below __Possible Exceptions__.
3441+ ///
3442+ /// __Possible Exceptions:__
3443+ /// - `HookResultNotFoundException` : The specified target doesn't have any requested Hook invocations.
3444+ public func getHookResult(input: GetHookResultInput) async throws -> GetHookResultOutput {
3445+ let context = Smithy.ContextBuilder()
3446+ .withMethod(value: .post)
3447+ .withServiceName(value: serviceName)
3448+ .withOperation(value: "getHookResult")
3449+ .withUnsignedPayloadTrait(value: false)
3450+ .withSmithyDefaultConfig(config)
3451+ .withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a")
3452+ .withRegion(value: config.region)
3453+ .withRequestChecksumCalculation(value: config.requestChecksumCalculation)
3454+ .withResponseChecksumValidation(value: config.responseChecksumValidation)
3455+ .withSigningName(value: "cloudformation")
3456+ .withSigningRegion(value: config.signingRegion)
3457+ .build()
3458+ let builder = ClientRuntime.OrchestratorBuilder<GetHookResultInput, GetHookResultOutput, SmithyHTTPAPI.HTTPRequest, SmithyHTTPAPI.HTTPResponse>()
3459+ config.interceptorProviders.forEach { provider in
3460+ builder.interceptors.add(provider.create())
3461+ }
3462+ config.httpInterceptorProviders.forEach { provider in
3463+ builder.interceptors.add(provider.create())
3464+ }
3465+ builder.interceptors.add(ClientRuntime.URLPathMiddleware<GetHookResultInput, GetHookResultOutput>(GetHookResultInput.urlPathProvider(_:)))
3466+ builder.interceptors.add(ClientRuntime.URLHostMiddleware<GetHookResultInput, GetHookResultOutput>())
3467+ builder.interceptors.add(ClientRuntime.ContentLengthMiddleware<GetHookResultInput, GetHookResultOutput>())
3468+ builder.deserialize(ClientRuntime.DeserializeMiddleware<GetHookResultOutput>(GetHookResultOutput.httpOutput(from:), GetHookResultOutputError.httpError(from:)))
3469+ builder.interceptors.add(ClientRuntime.LoggerMiddleware<GetHookResultInput, GetHookResultOutput>(clientLogMode: config.clientLogMode))
3470+ builder.clockSkewProvider(AWSClientRuntime.AWSClockSkewProvider.provider())
3471+ builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions))
3472+ builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:))
3473+ builder.applySigner(ClientRuntime.SignerMiddleware<GetHookResultOutput>())
3474+ let configuredEndpoint = try config.endpoint ?? AWSClientRuntime.AWSClientConfigDefaultsProvider.configuredEndpoint("CloudFormation", config.ignoreConfiguredEndpointURLs)
3475+ let endpointParamsBlock = { [config] (context: Smithy.Context) in
3476+ EndpointParams(endpoint: configuredEndpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
3477+ }
3478+ builder.applyEndpoint(AWSClientRuntime.AWSEndpointResolverMiddleware<GetHookResultOutput, EndpointParams>(paramsBlock: endpointParamsBlock, resolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }))
3479+ builder.serialize(ClientRuntime.BodyMiddleware<GetHookResultInput, GetHookResultOutput, SmithyFormURL.Writer>(rootNodeInfo: "", inputWritingClosure: GetHookResultInput.write(value:to:)))
3480+ builder.interceptors.add(ClientRuntime.ContentTypeMiddleware<GetHookResultInput, GetHookResultOutput>(contentType: "application/x-www-form-urlencoded"))
3481+ builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware<GetHookResultOutput>())
3482+ builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware<GetHookResultInput, GetHookResultOutput>())
3483+ builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware<GetHookResultInput, GetHookResultOutput>(maxRetries: config.retryStrategyOptions.maxRetriesBase))
3484+ builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware<GetHookResultInput, GetHookResultOutput>(serviceID: serviceName, version: CloudFormationClient.version, config: config))
3485+ var metricsAttributes = Smithy.Attributes()
3486+ metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "CloudFormation")
3487+ metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "GetHookResult")
3488+ let op = builder.attributes(context)
3489+ .telemetry(ClientRuntime.OrchestratorTelemetry(
3490+ telemetryProvider: config.telemetryProvider,
3491+ metricsAttributes: metricsAttributes,
3492+ meterScope: serviceName,
3493+ tracerScope: serviceName
3494+ ))
3495+ .executeRequest(client)
3496+ .build()
3497+ return try await op.execute(input: input)
3498+ }
3499+
34323500 /// Performs the `GetStackPolicy` operation on the `CloudFormation` service.
34333501 ///
34343502 /// Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.
0 commit comments