ServiceNetworkResourceAssociation constructor

ServiceNetworkResourceAssociation(
  1. String name, {
  2. ServiceNetworkResourceAssociationArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new ServiceNetworkResourceAssociation. name The Pulumi resource name. args Arguments used to configure this ServiceNetworkResourceAssociation. The set of arguments for ServiceNetworkResourceAssociation. options Resource options controlling this resource's behavior.

Implementation

ServiceNetworkResourceAssociation(
  String name, {
  ServiceNetworkResourceAssociationArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:vpclattice/serviceNetworkResourceAssociation:ServiceNetworkResourceAssociation',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  arn = registerOutput<String>('arn');
  dnsEntries = registerOutput<List<ServiceNetworkResourceAssociationDnsEntry>>('dnsEntries', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<ServiceNetworkResourceAssociationDnsEntry>(guardedValue, (value) => ServiceNetworkResourceAssociationDnsEntry.fromMap((value as Map).cast<String, dynamic>())); });
  privateDnsEnabled = registerOutput<bool>('privateDnsEnabled');
  region = registerOutput<String>('region');
  resourceConfigurationIdentifier = registerOutput<String>('resourceConfigurationIdentifier');
  serviceNetworkIdentifier = registerOutput<String>('serviceNetworkIdentifier');
  tags = registerOutput<Map<String, String>?>('tags', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  tagsAll = registerOutput<Map<String, String>>('tagsAll', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  timeouts = registerOutput<ServiceNetworkResourceAssociationTimeouts?>('timeouts', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return ServiceNetworkResourceAssociationTimeouts.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}