AWS Tools for Windows PowerShell
Command Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Synopsis

Calls the AWS DevOps Agent Service AssociateService API operation.

Syntax

Add-DOPSService
-Configuration_Aws_AccountId <String>
-Configuration_Mcpservernewrelic_AccountId <String>
-Configuration_SourceAws_AccountId <String>
-Configuration_Aws_AccountType <MonitorAccountType>
-Configuration_SourceAws_AccountType <SourceAccountType>
-AgentSpaceId <String>
-Configuration_Aws_AssumableRoleArn <String>
-Configuration_SourceAws_AssumableRoleArn <String>
-Configuration_Servicenow_AuthScope <String[]>
-Configuration_Slack_TransmissionTarget_OpsOncallTarget_ChannelId <String>
-Configuration_Slack_TransmissionTarget_OpsSRETarget_ChannelId <String>
-Configuration_Slack_TransmissionTarget_OpsOncallTarget_ChannelName <String>
-Configuration_Slack_TransmissionTarget_OpsSRETarget_ChannelName <String>
-Configuration_Pagerduty_CustomerEmail <String>
-Configuration_Mcpservergrafana_Endpoint <String>
-Configuration_Mcpservernewrelic_Endpoint <String>
-Configuration_Dynatrace_EnvId <String>
-Configuration_EventChannel <EventChannelConfiguration>
-Configuration_SourceAws_ExternalId <String>
-Configuration_Servicenow_InstanceId <String>
-Configuration_Github_InstanceIdentifier <String>
-Configuration_Gitlab_InstanceIdentifier <String>
-Configuration_Mcpserverdatadog <MCPServerDatadogConfiguration>
-Configuration_Mcpserversplunk <MCPServerSplunkConfiguration>
-Configuration_Mcpservergrafana_OrganizationId <String>
-Configuration_Azuredevops_OrganizationName <String>
-Configuration_Github_Owner <String>
-Configuration_Github_OwnerType <GithubRepoOwnerType>
-Configuration_Azuredevops_ProjectId <String>
-Configuration_Gitlab_ProjectId <String>
-Configuration_Azuredevops_ProjectName <String>
-Configuration_Gitlab_ProjectPath <String>
-Configuration_Github_RepoId <String>
-Configuration_Github_RepoName <String>
-Configuration_Dynatrace_Resource <String[]>
-ServiceId <String>
-Configuration_Pagerduty_Service <String[]>
-Configuration_Azure_SubscriptionId <String>
-Configuration_Mcpserver_Tool <String[]>
-Configuration_Mcpservergrafana_Tool <String[]>
-Configuration_Slack_WorkspaceId <String>
-Configuration_Slack_WorkspaceName <String>
-Select <String>
-Force <SwitchParameter>
-ClientConfig <AmazonDevOpsAgentConfig>

Description

Adds a specific service association to an AgentSpace. It overwrites the existing association of the same service. Returns 201 Created on success.

Parameters

-AgentSpaceId <String>
The unique identifier of the AgentSpace
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-ClientConfig <AmazonDevOpsAgentConfig>
Amazon.PowerShell.Cmdlets.DOPS.AmazonDevOpsAgentClientCmdlet.ClientConfig
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Aws_AccountId <String>
AWS Account Id corresponding to provided resources.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Aws_AccountType <MonitorAccountType>
Account Type 'monitor' for AIDevOps monitoring.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Aws_AssumableRoleArn <String>
Role ARN to be assumed by AIDevOps to operate on behalf of customer.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Azure_SubscriptionId <String>
Azure subscription ID corresponding to provided resources.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Azuredevops_OrganizationName <String>
Azure DevOps organization name.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Azuredevops_ProjectId <String>
Azure DevOps project ID.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Azuredevops_ProjectName <String>
Azure DevOps project name.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Dynatrace_EnvId <String>
Dynatrace environment id
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Dynatrace_Resource <String[]>
List of Dynatrace resources to monitor Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesConfiguration_Dynatrace_Resources
-Configuration_EventChannel <EventChannelConfiguration>
Event Channel instance integration configuration.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Github_InstanceIdentifier <String>
GitHub instance identifier (e.g., github.com or github.enterprise.com)
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Github_Owner <String>
The GitHub repository owner name.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Github_OwnerType <GithubRepoOwnerType>
The service has not provided documentation for this parameter; please refer to the service's API reference documentation for the latest available information.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Github_RepoId <String>
Associated Github repo ID
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Github_RepoName <String>
Associated Github repo name
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Gitlab_InstanceIdentifier <String>
GitLab instance identifier (e.g., gitlab.com or e2e.gamma.dev.us-east-1.gitlab.falco.ai.aws.dev)
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Gitlab_ProjectId <String>
GitLab numeric project ID.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Gitlab_ProjectPath <String>
Full GitLab project path (e.g., namespace/project-name).
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Mcpserver_Tool <String[]>
List of MCP tools can be used with the association. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesConfiguration_Mcpserver_Tools
-Configuration_Mcpserverdatadog <MCPServerDatadogConfiguration>
Datadog MCP server integration configuration.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Mcpservergrafana_Endpoint <String>
Grafana instance URL (e.g., https://your-instance.grafana.net)
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Mcpservergrafana_OrganizationId <String>
The Grafana organization ID that can be used.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Mcpservergrafana_Tool <String[]>
List of MCP tools that can be used. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesConfiguration_Mcpservergrafana_Tools
-Configuration_Mcpservernewrelic_AccountId <String>
New Relic Account ID
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Mcpservernewrelic_Endpoint <String>
MCP server endpoint URL (e.g., https://mcp.newrelic.com/mcp/)
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Mcpserversplunk <MCPServerSplunkConfiguration>
Splunk MCP server integration configuration.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Pagerduty_CustomerEmail <String>
Email to be used in Pagerduty API header
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Pagerduty_Service <String[]>
List of Pagerduty service available for the association. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesConfiguration_Pagerduty_Services
-Configuration_Servicenow_AuthScope <String[]>
Scoped down authentication scopes for fine grained control Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesConfiguration_Servicenow_AuthScopes
-Configuration_Servicenow_InstanceId <String>
ServiceNow instance ID
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Slack_TransmissionTarget_OpsOncallTarget_ChannelId <String>
Slack channel ID
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Slack_TransmissionTarget_OpsOncallTarget_ChannelName <String>
Slack channel name
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Slack_TransmissionTarget_OpsSRETarget_ChannelId <String>
Slack channel ID
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Slack_TransmissionTarget_OpsSRETarget_ChannelName <String>
Slack channel name
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Slack_WorkspaceId <String>
Associated Slack workspace ID
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_Slack_WorkspaceName <String>
Associated Slack workspace name
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_SourceAws_AccountId <String>
AWS Account Id corresponding to provided resources.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_SourceAws_AccountType <SourceAccountType>
Account Type 'source' for AIDevOps monitoring.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_SourceAws_AssumableRoleArn <String>
Role ARN to be assumed by AIDevOps to operate on behalf of customer.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Configuration_SourceAws_ExternalId <String>
External ID for additional security when assuming the role. Used to prevent the confused deputy problem.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
This parameter overrides confirmation prompts to force the cmdlet to continue its operation. This parameter should always be used with caution.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Select <String>
Use the -Select parameter to control the cmdlet output. The default value is '*'. Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.DevOpsAgent.Model.AssociateServiceResponse). Specifying the name of a property of type Amazon.DevOpsAgent.Model.AssociateServiceResponse will result in that property being returned. Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ServiceId <String>
The unique identifier of the service.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)

Common Credential and Region Parameters

-AccessKey <String>
The AWS access key for the user account. This can be a temporary access key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAK
-Credential <AWSCredentials>
An AWSCredentials object instance containing access and secret key information, and optionally a token for session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-EndpointUrl <String>
The endpoint to make the call against.Note: This parameter is primarily for internal AWS use and is not required/should not be specified for normal usage. The cmdlets normally determine which endpoint to call based on the region specified to the -Region parameter or set as default in the shell (via Set-DefaultAWSRegion). Only specify this parameter if you must direct the call to a specific custom endpoint.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NetworkCredential <PSCredential>
Used with SAML-based authentication when ProfileName references a SAML role profile. Contains the network credentials to be supplied during authentication with the configured identity provider's endpoint. This parameter is not required if the user's default network identity can or should be used during authentication.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-ProfileLocation <String>
Used to specify the name and location of the ini-format credential file (shared with the AWS CLI and other AWS SDKs)If this optional parameter is omitted this cmdlet will search the encrypted credential file used by the AWS SDK for .NET and AWS Toolkit for Visual Studio first. If the profile is not found then the cmdlet will search in the ini-format credential file at the default location: (user's home directory)\.aws\credentials.If this parameter is specified then this cmdlet will only search the ini-format credential file at the location given.As the current folder can vary in a shell or during script execution it is advised that you use specify a fully qualified path instead of a relative path.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAWSProfilesLocation, ProfilesLocation
-ProfileName <String>
The user-defined name of an AWS credentials or SAML-based role profile containing credential information. The profile is expected to be found in the secure credential file shared with the AWS SDK for .NET and AWS Toolkit for Visual Studio. You can also specify the name of a profile stored in the .ini-format credential file used with the AWS CLI and other AWS SDKs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesStoredCredentials, AWSProfileName
-Region <Object>
The system name of an AWS region or an AWSRegion instance. This governs the endpoint that will be used when calling service operations. Note that the AWS resources referenced in a call are usually region-specific.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRegionToCall
-SecretKey <String>
The AWS secret key for the user account. This can be a temporary secret key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSK, SecretAccessKey
-SessionToken <String>
The session token if the access and secret keys are temporary session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesST

Outputs

This cmdlet returns an Amazon.DevOpsAgent.Model.AssociateServiceResponse object containing multiple properties.

Supported Version

AWS Tools for PowerShell: 2.x.y.z