updateIdentityProviderConfiguration method

Future<void> updateIdentityProviderConfiguration({
  1. required String fleetArn,
  2. required IdentityProviderType identityProviderType,
  3. String? identityProviderSamlMetadata,
})

Updates the identity provider configuration for the fleet.

May throw UnauthorizedException. May throw InternalServerErrorException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw TooManyRequestsException.

Parameter fleetArn : The ARN of the fleet.

Parameter identityProviderType : The type of identity provider.

Parameter identityProviderSamlMetadata : The SAML metadata document provided by the customer’s identity provider. The existing IdentityProviderSamlMetadata is unset if null is passed.

Implementation

Future<void> updateIdentityProviderConfiguration({
  required String fleetArn,
  required IdentityProviderType identityProviderType,
  String? identityProviderSamlMetadata,
}) async {
  ArgumentError.checkNotNull(fleetArn, 'fleetArn');
  _s.validateStringLength(
    'fleetArn',
    fleetArn,
    20,
    2048,
    isRequired: true,
  );
  ArgumentError.checkNotNull(identityProviderType, 'identityProviderType');
  _s.validateStringLength(
    'identityProviderSamlMetadata',
    identityProviderSamlMetadata,
    1,
    204800,
  );
  final $payload = <String, dynamic>{
    'FleetArn': fleetArn,
    'IdentityProviderType': identityProviderType.toValue(),
    if (identityProviderSamlMetadata != null)
      'IdentityProviderSamlMetadata': identityProviderSamlMetadata,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/updateIdentityProviderConfiguration',
    exceptionFnMap: _exceptionFns,
  );
}