

# Service


The service for a cross account role.

## Contents


 ** clusterArn **   <a name="regionswitch-Type-Service-clusterArn"></a>
The cluster Amazon Resource Name (ARN) for a service.  
Type: String  
Pattern: `arn:aws[a-zA-Z-]*:ecs:[a-z0-9-]+:\d{12}:cluster/[a-zA-Z0-9_-]{1,255}`   
Required: No

 ** crossAccountRole **   <a name="regionswitch-Type-Service-crossAccountRole"></a>
The cross account role for a service.  
Type: String  
Pattern: `arn:aws[a-zA-Z0-9-]*:iam::[0-9]{12}:role/.+`   
Required: No

 ** externalId **   <a name="regionswitch-Type-Service-externalId"></a>
The external ID (secret key) for the service.  
Type: String  
Required: No

 ** serviceArn **   <a name="regionswitch-Type-Service-serviceArn"></a>
The Amazon Resource Name (ARN) for a service.  
Type: String  
Pattern: `arn:aws[a-zA-Z-]*:ecs:[a-z0-9-]+:\d{12}:service/[a-zA-Z0-9_-]+/[a-zA-Z0-9_-]{1,255}`   
Required: No

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/arc-region-switch-2022-07-26/Service) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/arc-region-switch-2022-07-26/Service) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/arc-region-switch-2022-07-26/Service) 