aws.vpclattice.ServiceNetworkServiceAssociation
Explore with Pulumi AI
Resource for managing an AWS VPC Lattice Service Network Service Association.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.vpclattice.ServiceNetworkServiceAssociation("example", {
serviceIdentifier: exampleAwsVpclatticeService.id,
serviceNetworkIdentifier: exampleAwsVpclatticeServiceNetwork.id,
});
import pulumi
import pulumi_aws as aws
example = aws.vpclattice.ServiceNetworkServiceAssociation("example",
service_identifier=example_aws_vpclattice_service["id"],
service_network_identifier=example_aws_vpclattice_service_network["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/vpclattice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpclattice.NewServiceNetworkServiceAssociation(ctx, "example", &vpclattice.ServiceNetworkServiceAssociationArgs{
ServiceIdentifier: pulumi.Any(exampleAwsVpclatticeService.Id),
ServiceNetworkIdentifier: pulumi.Any(exampleAwsVpclatticeServiceNetwork.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.VpcLattice.ServiceNetworkServiceAssociation("example", new()
{
ServiceIdentifier = exampleAwsVpclatticeService.Id,
ServiceNetworkIdentifier = exampleAwsVpclatticeServiceNetwork.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.vpclattice.ServiceNetworkServiceAssociation;
import com.pulumi.aws.vpclattice.ServiceNetworkServiceAssociationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ServiceNetworkServiceAssociation("example", ServiceNetworkServiceAssociationArgs.builder()
.serviceIdentifier(exampleAwsVpclatticeService.id())
.serviceNetworkIdentifier(exampleAwsVpclatticeServiceNetwork.id())
.build());
}
}
resources:
example:
type: aws:vpclattice:ServiceNetworkServiceAssociation
properties:
serviceIdentifier: ${exampleAwsVpclatticeService.id}
serviceNetworkIdentifier: ${exampleAwsVpclatticeServiceNetwork.id}
Create ServiceNetworkServiceAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceNetworkServiceAssociation(name: string, args: ServiceNetworkServiceAssociationArgs, opts?: CustomResourceOptions);
@overload
def ServiceNetworkServiceAssociation(resource_name: str,
args: ServiceNetworkServiceAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceNetworkServiceAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
service_identifier: Optional[str] = None,
service_network_identifier: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewServiceNetworkServiceAssociation(ctx *Context, name string, args ServiceNetworkServiceAssociationArgs, opts ...ResourceOption) (*ServiceNetworkServiceAssociation, error)
public ServiceNetworkServiceAssociation(string name, ServiceNetworkServiceAssociationArgs args, CustomResourceOptions? opts = null)
public ServiceNetworkServiceAssociation(String name, ServiceNetworkServiceAssociationArgs args)
public ServiceNetworkServiceAssociation(String name, ServiceNetworkServiceAssociationArgs args, CustomResourceOptions options)
type: aws:vpclattice:ServiceNetworkServiceAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ServiceNetworkServiceAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ServiceNetworkServiceAssociationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServiceNetworkServiceAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceNetworkServiceAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceNetworkServiceAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var serviceNetworkServiceAssociationResource = new Aws.VpcLattice.ServiceNetworkServiceAssociation("serviceNetworkServiceAssociationResource", new()
{
ServiceIdentifier = "string",
ServiceNetworkIdentifier = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := vpclattice.NewServiceNetworkServiceAssociation(ctx, "serviceNetworkServiceAssociationResource", &vpclattice.ServiceNetworkServiceAssociationArgs{
ServiceIdentifier: pulumi.String("string"),
ServiceNetworkIdentifier: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var serviceNetworkServiceAssociationResource = new ServiceNetworkServiceAssociation("serviceNetworkServiceAssociationResource", ServiceNetworkServiceAssociationArgs.builder()
.serviceIdentifier("string")
.serviceNetworkIdentifier("string")
.tags(Map.of("string", "string"))
.build());
service_network_service_association_resource = aws.vpclattice.ServiceNetworkServiceAssociation("serviceNetworkServiceAssociationResource",
service_identifier="string",
service_network_identifier="string",
tags={
"string": "string",
})
const serviceNetworkServiceAssociationResource = new aws.vpclattice.ServiceNetworkServiceAssociation("serviceNetworkServiceAssociationResource", {
serviceIdentifier: "string",
serviceNetworkIdentifier: "string",
tags: {
string: "string",
},
});
type: aws:vpclattice:ServiceNetworkServiceAssociation
properties:
serviceIdentifier: string
serviceNetworkIdentifier: string
tags:
string: string
ServiceNetworkServiceAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ServiceNetworkServiceAssociation resource accepts the following input properties:
- Service
Identifier string - The ID or Amazon Resource Identifier (ARN) of the service.
- Service
Network stringIdentifier - The ID or Amazon Resource Identifier (ARN) of the service network. You must use the ARN if the resources specified in the operation are in different accounts. The following arguments are optional:
- Dictionary<string, string>
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Service
Identifier string - The ID or Amazon Resource Identifier (ARN) of the service.
- Service
Network stringIdentifier - The ID or Amazon Resource Identifier (ARN) of the service network. You must use the ARN if the resources specified in the operation are in different accounts. The following arguments are optional:
- map[string]string
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- service
Identifier String - The ID or Amazon Resource Identifier (ARN) of the service.
- service
Network StringIdentifier - The ID or Amazon Resource Identifier (ARN) of the service network. You must use the ARN if the resources specified in the operation are in different accounts. The following arguments are optional:
- Map<String,String>
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- service
Identifier string - The ID or Amazon Resource Identifier (ARN) of the service.
- service
Network stringIdentifier - The ID or Amazon Resource Identifier (ARN) of the service network. You must use the ARN if the resources specified in the operation are in different accounts. The following arguments are optional:
- {[key: string]: string}
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- service_
identifier str - The ID or Amazon Resource Identifier (ARN) of the service.
- service_
network_ stridentifier - The ID or Amazon Resource Identifier (ARN) of the service network. You must use the ARN if the resources specified in the operation are in different accounts. The following arguments are optional:
- Mapping[str, str]
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- service
Identifier String - The ID or Amazon Resource Identifier (ARN) of the service.
- service
Network StringIdentifier - The ID or Amazon Resource Identifier (ARN) of the service network. You must use the ARN if the resources specified in the operation are in different accounts. The following arguments are optional:
- Map<String>
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceNetworkServiceAssociation resource produces the following output properties:
- Arn string
- The ARN of the Association.
- Created
By string - The account that created the association.
- Custom
Domain stringName - The custom domain name of the service.
- Dns
Entries List<ServiceNetwork Service Association Dns Entry> - The DNS name of the service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The operations status. Valid Values are CREATE_IN_PROGRESS | ACTIVE | DELETE_IN_PROGRESS | CREATE_FAILED | DELETE_FAILED
- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- The ARN of the Association.
- Created
By string - The account that created the association.
- Custom
Domain stringName - The custom domain name of the service.
- Dns
Entries []ServiceNetwork Service Association Dns Entry - The DNS name of the service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- The operations status. Valid Values are CREATE_IN_PROGRESS | ACTIVE | DELETE_IN_PROGRESS | CREATE_FAILED | DELETE_FAILED
- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The ARN of the Association.
- created
By String - The account that created the association.
- custom
Domain StringName - The custom domain name of the service.
- dns
Entries List<ServiceNetwork Service Association Dns Entry> - The DNS name of the service.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The operations status. Valid Values are CREATE_IN_PROGRESS | ACTIVE | DELETE_IN_PROGRESS | CREATE_FAILED | DELETE_FAILED
- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- The ARN of the Association.
- created
By string - The account that created the association.
- custom
Domain stringName - The custom domain name of the service.
- dns
Entries ServiceNetwork Service Association Dns Entry[] - The DNS name of the service.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- The operations status. Valid Values are CREATE_IN_PROGRESS | ACTIVE | DELETE_IN_PROGRESS | CREATE_FAILED | DELETE_FAILED
- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- The ARN of the Association.
- created_
by str - The account that created the association.
- custom_
domain_ strname - The custom domain name of the service.
- dns_
entries Sequence[ServiceNetwork Service Association Dns Entry] - The DNS name of the service.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- The operations status. Valid Values are CREATE_IN_PROGRESS | ACTIVE | DELETE_IN_PROGRESS | CREATE_FAILED | DELETE_FAILED
- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The ARN of the Association.
- created
By String - The account that created the association.
- custom
Domain StringName - The custom domain name of the service.
- dns
Entries List<Property Map> - The DNS name of the service.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- The operations status. Valid Values are CREATE_IN_PROGRESS | ACTIVE | DELETE_IN_PROGRESS | CREATE_FAILED | DELETE_FAILED
- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing ServiceNetworkServiceAssociation Resource
Get an existing ServiceNetworkServiceAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ServiceNetworkServiceAssociationState, opts?: CustomResourceOptions): ServiceNetworkServiceAssociation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
created_by: Optional[str] = None,
custom_domain_name: Optional[str] = None,
dns_entries: Optional[Sequence[ServiceNetworkServiceAssociationDnsEntryArgs]] = None,
service_identifier: Optional[str] = None,
service_network_identifier: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> ServiceNetworkServiceAssociation
func GetServiceNetworkServiceAssociation(ctx *Context, name string, id IDInput, state *ServiceNetworkServiceAssociationState, opts ...ResourceOption) (*ServiceNetworkServiceAssociation, error)
public static ServiceNetworkServiceAssociation Get(string name, Input<string> id, ServiceNetworkServiceAssociationState? state, CustomResourceOptions? opts = null)
public static ServiceNetworkServiceAssociation get(String name, Output<String> id, ServiceNetworkServiceAssociationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- The ARN of the Association.
- Created
By string - The account that created the association.
- Custom
Domain stringName - The custom domain name of the service.
- Dns
Entries List<ServiceNetwork Service Association Dns Entry> - The DNS name of the service.
- Service
Identifier string - The ID or Amazon Resource Identifier (ARN) of the service.
- Service
Network stringIdentifier - The ID or Amazon Resource Identifier (ARN) of the service network. You must use the ARN if the resources specified in the operation are in different accounts. The following arguments are optional:
- Status string
- The operations status. Valid Values are CREATE_IN_PROGRESS | ACTIVE | DELETE_IN_PROGRESS | CREATE_FAILED | DELETE_FAILED
- Dictionary<string, string>
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- The ARN of the Association.
- Created
By string - The account that created the association.
- Custom
Domain stringName - The custom domain name of the service.
- Dns
Entries []ServiceNetwork Service Association Dns Entry Args - The DNS name of the service.
- Service
Identifier string - The ID or Amazon Resource Identifier (ARN) of the service.
- Service
Network stringIdentifier - The ID or Amazon Resource Identifier (ARN) of the service network. You must use the ARN if the resources specified in the operation are in different accounts. The following arguments are optional:
- Status string
- The operations status. Valid Values are CREATE_IN_PROGRESS | ACTIVE | DELETE_IN_PROGRESS | CREATE_FAILED | DELETE_FAILED
- map[string]string
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The ARN of the Association.
- created
By String - The account that created the association.
- custom
Domain StringName - The custom domain name of the service.
- dns
Entries List<ServiceNetwork Service Association Dns Entry> - The DNS name of the service.
- service
Identifier String - The ID or Amazon Resource Identifier (ARN) of the service.
- service
Network StringIdentifier - The ID or Amazon Resource Identifier (ARN) of the service network. You must use the ARN if the resources specified in the operation are in different accounts. The following arguments are optional:
- status String
- The operations status. Valid Values are CREATE_IN_PROGRESS | ACTIVE | DELETE_IN_PROGRESS | CREATE_FAILED | DELETE_FAILED
- Map<String,String>
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- The ARN of the Association.
- created
By string - The account that created the association.
- custom
Domain stringName - The custom domain name of the service.
- dns
Entries ServiceNetwork Service Association Dns Entry[] - The DNS name of the service.
- service
Identifier string - The ID or Amazon Resource Identifier (ARN) of the service.
- service
Network stringIdentifier - The ID or Amazon Resource Identifier (ARN) of the service network. You must use the ARN if the resources specified in the operation are in different accounts. The following arguments are optional:
- status string
- The operations status. Valid Values are CREATE_IN_PROGRESS | ACTIVE | DELETE_IN_PROGRESS | CREATE_FAILED | DELETE_FAILED
- {[key: string]: string}
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- The ARN of the Association.
- created_
by str - The account that created the association.
- custom_
domain_ strname - The custom domain name of the service.
- dns_
entries Sequence[ServiceNetwork Service Association Dns Entry Args] - The DNS name of the service.
- service_
identifier str - The ID or Amazon Resource Identifier (ARN) of the service.
- service_
network_ stridentifier - The ID or Amazon Resource Identifier (ARN) of the service network. You must use the ARN if the resources specified in the operation are in different accounts. The following arguments are optional:
- status str
- The operations status. Valid Values are CREATE_IN_PROGRESS | ACTIVE | DELETE_IN_PROGRESS | CREATE_FAILED | DELETE_FAILED
- Mapping[str, str]
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- The ARN of the Association.
- created
By String - The account that created the association.
- custom
Domain StringName - The custom domain name of the service.
- dns
Entries List<Property Map> - The DNS name of the service.
- service
Identifier String - The ID or Amazon Resource Identifier (ARN) of the service.
- service
Network StringIdentifier - The ID or Amazon Resource Identifier (ARN) of the service network. You must use the ARN if the resources specified in the operation are in different accounts. The following arguments are optional:
- status String
- The operations status. Valid Values are CREATE_IN_PROGRESS | ACTIVE | DELETE_IN_PROGRESS | CREATE_FAILED | DELETE_FAILED
- Map<String>
- Key-value mapping of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Supporting Types
ServiceNetworkServiceAssociationDnsEntry, ServiceNetworkServiceAssociationDnsEntryArgs
- Domain
Name string - The domain name of the service.
- Hosted
Zone stringId - The ID of the hosted zone.
- Domain
Name string - The domain name of the service.
- Hosted
Zone stringId - The ID of the hosted zone.
- domain
Name String - The domain name of the service.
- hosted
Zone StringId - The ID of the hosted zone.
- domain
Name string - The domain name of the service.
- hosted
Zone stringId - The ID of the hosted zone.
- domain_
name str - The domain name of the service.
- hosted_
zone_ strid - The ID of the hosted zone.
- domain
Name String - The domain name of the service.
- hosted
Zone StringId - The ID of the hosted zone.
Import
Using pulumi import
, import VPC Lattice Service Network Service Association using the id
. For example:
$ pulumi import aws:vpclattice/serviceNetworkServiceAssociation:ServiceNetworkServiceAssociation example snsa-05e2474658a88f6ba
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.