/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a service discovery registry to assign to the
* service.See Also:
AWS
* API Reference
The container name value to use for the service discovery service.
If
* the task definition uses the bridge
or host
network
* mode, you must specify ContainerName
and
* ContainerPort
.
If the task definition uses the
* awsvpc
network mode and a type SRV DNS record, you must specify
* either ContainerName
and ContainerPort
, or
* Port
, but not both.
The container name value to use for the service discovery service.
If
* the task definition uses the bridge
or host
network
* mode, you must specify ContainerName
and
* ContainerPort
.
If the task definition uses the
* awsvpc
network mode and a type SRV DNS record, you must specify
* either ContainerName
and ContainerPort
, or
* Port
, but not both.
The container name value to use for the service discovery service.
If
* the task definition uses the bridge
or host
network
* mode, you must specify ContainerName
and
* ContainerPort
.
If the task definition uses the
* awsvpc
network mode and a type SRV DNS record, you must specify
* either ContainerName
and ContainerPort
, or
* Port
, but not both.
The container name value to use for the service discovery service.
If
* the task definition uses the bridge
or host
network
* mode, you must specify ContainerName
and
* ContainerPort
.
If the task definition uses the
* awsvpc
network mode and a type SRV DNS record, you must specify
* either ContainerName
and ContainerPort
, or
* Port
, but not both.
The container name value to use for the service discovery service.
If
* the task definition uses the bridge
or host
network
* mode, you must specify ContainerName
and
* ContainerPort
.
If the task definition uses the
* awsvpc
network mode and a type SRV DNS record, you must specify
* either ContainerName
and ContainerPort
, or
* Port
, but not both.
The container name value to use for the service discovery service.
If
* the task definition uses the bridge
or host
network
* mode, you must specify ContainerName
and
* ContainerPort
.
If the task definition uses the
* awsvpc
network mode and a type SRV DNS record, you must specify
* either ContainerName
and ContainerPort
, or
* Port
, but not both.
The container name value to use for the service discovery service.
If
* the task definition uses the bridge
or host
network
* mode, you must specify ContainerName
and
* ContainerPort
.
If the task definition uses the
* awsvpc
network mode and a type SRV DNS record, you must specify
* either ContainerName
and ContainerPort
, or
* Port
, but not both.
The container name value to use for the service discovery service.
If
* the task definition uses the bridge
or host
network
* mode, you must specify ContainerName
and
* ContainerPort
.
If the task definition uses the
* awsvpc
network mode and a type SRV DNS record, you must specify
* either ContainerName
and ContainerPort
, or
* Port
, but not both.
The port value to use for the service discovery service.
If the task
* definition uses the bridge
or host
network mode, you
* must specify ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type
* SRV DNS record, you must specify either ContainerName
and
* ContainerPort
, or Port
, but not both.
The port value to use for the service discovery service.
If the task
* definition uses the bridge
or host
network mode, you
* must specify ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type
* SRV DNS record, you must specify either ContainerName
and
* ContainerPort
, or Port
, but not both.
The port value to use for the service discovery service.
If the task
* definition uses the bridge
or host
network mode, you
* must specify ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type
* SRV DNS record, you must specify either ContainerName
and
* ContainerPort
, or Port
, but not both.
The port value to use for the service discovery service.
If the task
* definition uses the bridge
or host
network mode, you
* must specify ContainerName
and ContainerPort
.
If the task definition uses the awsvpc
network mode and a type
* SRV DNS record, you must specify either ContainerName
and
* ContainerPort
, or Port
, but not both.
The port value to use for a service discovery service that specifies an SRV
* record. This field can be used if both the awsvpc
awsvpc network
* mode and SRV records are used.
The port value to use for a service discovery service that specifies an SRV
* record. This field can be used if both the awsvpc
awsvpc network
* mode and SRV records are used.
The port value to use for a service discovery service that specifies an SRV
* record. This field can be used if both the awsvpc
awsvpc network
* mode and SRV records are used.
The port value to use for a service discovery service that specifies an SRV
* record. This field can be used if both the awsvpc
awsvpc network
* mode and SRV records are used.
The ARN of the service registry.
*/ inline const Aws::String& GetRegistryArn() const{ return m_registryArn; } /** *The ARN of the service registry.
*/ inline bool RegistryArnHasBeenSet() const { return m_registryArnHasBeenSet; } /** *The ARN of the service registry.
*/ inline void SetRegistryArn(const Aws::String& value) { m_registryArnHasBeenSet = true; m_registryArn = value; } /** *The ARN of the service registry.
*/ inline void SetRegistryArn(Aws::String&& value) { m_registryArnHasBeenSet = true; m_registryArn = std::move(value); } /** *The ARN of the service registry.
*/ inline void SetRegistryArn(const char* value) { m_registryArnHasBeenSet = true; m_registryArn.assign(value); } /** *The ARN of the service registry.
*/ inline AwsEcsServiceServiceRegistriesDetails& WithRegistryArn(const Aws::String& value) { SetRegistryArn(value); return *this;} /** *The ARN of the service registry.
*/ inline AwsEcsServiceServiceRegistriesDetails& WithRegistryArn(Aws::String&& value) { SetRegistryArn(std::move(value)); return *this;} /** *The ARN of the service registry.
*/ inline AwsEcsServiceServiceRegistriesDetails& WithRegistryArn(const char* value) { SetRegistryArn(value); return *this;} private: Aws::String m_containerName; bool m_containerNameHasBeenSet = false; int m_containerPort; bool m_containerPortHasBeenSet = false; int m_port; bool m_portHasBeenSet = false; Aws::String m_registryArn; bool m_registryArnHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws