Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi
published on Thursday, Sep 10, 2026 by Pulumi
Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi
published on Thursday, Sep 10, 2026 by Pulumi
Data source for reading an AWS Resilience Hub V2 Service.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.resiliencehub.getV2Service({
arn: "arn:aws:resiliencehub:us-west-2:123456789012:service/example-service:abc123",
});
import pulumi
import pulumi_aws as aws
example = aws.resiliencehub.get_v2_service(arn="arn:aws:resiliencehub:us-west-2:123456789012:service/example-service:abc123")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/resiliencehub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := resiliencehub.LookupV2Service(ctx, &resiliencehub.LookupV2ServiceArgs{
Arn: "arn:aws:resiliencehub:us-west-2:123456789012:service/example-service:abc123",
}, nil)
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 = Aws.ResilienceHub.GetV2Service.Invoke(new()
{
Arn = "arn:aws:resiliencehub:us-west-2:123456789012:service/example-service:abc123",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.resiliencehub.ResiliencehubFunctions;
import com.pulumi.aws.resiliencehub.inputs.GetV2ServiceArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
final var example = ResiliencehubFunctions.getV2Service(GetV2ServiceArgs.builder()
.arn("arn:aws:resiliencehub:us-west-2:123456789012:service/example-service:abc123")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:resiliencehub:getV2Service
arguments:
arn: arn:aws:resiliencehub:us-west-2:123456789012:service/example-service:abc123
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
data "aws_resiliencehub_getv2service" "example" {
arn = "arn:aws:resiliencehub:us-west-2:123456789012:service/example-service:abc123"
}
Using getV2Service
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getV2Service(args: GetV2ServiceArgs, opts?: InvokeOptions): Promise<GetV2ServiceResult>
function getV2ServiceOutput(args: GetV2ServiceOutputArgs, opts?: InvokeOutputOptions): Output<GetV2ServiceResult>def get_v2_service(arn: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetV2ServiceResult
def get_v2_service_output(arn: pulumi.Input[Optional[str]] = None,
region: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetV2ServiceResult]func LookupV2Service(ctx *Context, args *LookupV2ServiceArgs, opts ...InvokeOption) (*LookupV2ServiceResult, error)
func LookupV2ServiceOutput(ctx *Context, args *LookupV2ServiceOutputArgs, opts ...InvokeOption) LookupV2ServiceResultOutput> Note: This function is named LookupV2Service in the Go SDK.
public static class GetV2Service
{
public static Task<GetV2ServiceResult> InvokeAsync(GetV2ServiceArgs args, InvokeOptions? opts = null)
public static Output<GetV2ServiceResult> Invoke(GetV2ServiceInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetV2ServiceResult> Invoke(GetV2ServiceInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetV2ServiceResult> getV2Service(GetV2ServiceArgs args, InvokeOptions options)
public static Output<GetV2ServiceResult> getV2Service(GetV2ServiceArgs args, InvokeOptions options)
public static Output<GetV2ServiceResult> getV2Service(GetV2ServiceArgs args, InvokeOutputOptions options)
fn::invoke:
function: aws:resiliencehub/getV2Service:getV2Service
arguments:
# arguments dictionarydata "aws_resiliencehub_get_v2_service" "name" {
# arguments
}The following arguments are supported:
getV2Service Result
The following output properties are available:
- Arn string
- Associated
Systems List<GetV2Service Associated System> - Systems associated with the service. See
associatedSystemBlock below. - Description string
- Description of the service.
- Kms
Key stringId - KMS key ARN.
- Name string
- Name of the service.
- Permission
Models List<GetV2Service Permission Model> - Permission model configuration. See
permissionModelBlock below. - Policy
Arn string - ARN of the associated resilience policy.
- Region string
- Regions List<string>
- List of AWS regions where the service operates.
- Dictionary<string, string>
- Map of tags assigned to the resource.
- Arn string
- Associated
Systems []GetV2Service Associated System - Systems associated with the service. See
associatedSystemBlock below. - Description string
- Description of the service.
- Kms
Key stringId - KMS key ARN.
- Name string
- Name of the service.
- Permission
Models []GetV2Service Permission Model - Permission model configuration. See
permissionModelBlock below. - Policy
Arn string - ARN of the associated resilience policy.
- Region string
- Regions []string
- List of AWS regions where the service operates.
- map[string]string
- Map of tags assigned to the resource.
- arn string
- associated_
systems list(object) - Systems associated with the service. See
associatedSystemBlock below. - description string
- Description of the service.
- kms_
key_ stringid - KMS key ARN.
- name string
- Name of the service.
- permission_
models list(object) - Permission model configuration. See
permissionModelBlock below. - policy_
arn string - ARN of the associated resilience policy.
- region string
- regions list(string)
- List of AWS regions where the service operates.
- map(string)
- Map of tags assigned to the resource.
- arn String
- associated
Systems List<GetV2Service Associated System> - Systems associated with the service. See
associatedSystemBlock below. - description String
- Description of the service.
- kms
Key StringId - KMS key ARN.
- name String
- Name of the service.
- permission
Models List<GetV2Service Permission Model> - Permission model configuration. See
permissionModelBlock below. - policy
Arn String - ARN of the associated resilience policy.
- region String
- regions List<String>
- List of AWS regions where the service operates.
- Map<String,String>
- Map of tags assigned to the resource.
- arn string
- associated
Systems GetV2Service Associated System[] - Systems associated with the service. See
associatedSystemBlock below. - description string
- Description of the service.
- kms
Key stringId - KMS key ARN.
- name string
- Name of the service.
- permission
Models GetV2Service Permission Model[] - Permission model configuration. See
permissionModelBlock below. - policy
Arn string - ARN of the associated resilience policy.
- region string
- regions string[]
- List of AWS regions where the service operates.
- {[key: string]: string}
- Map of tags assigned to the resource.
- arn str
- associated_
systems Sequence[GetV2Service Associated System] - Systems associated with the service. See
associatedSystemBlock below. - description str
- Description of the service.
- kms_
key_ strid - KMS key ARN.
- name str
- Name of the service.
- permission_
models Sequence[GetV2Service Permission Model] - Permission model configuration. See
permissionModelBlock below. - policy_
arn str - ARN of the associated resilience policy.
- region str
- regions Sequence[str]
- List of AWS regions where the service operates.
- Mapping[str, str]
- Map of tags assigned to the resource.
- arn String
- associated
Systems List<Property Map> - Systems associated with the service. See
associatedSystemBlock below. - description String
- Description of the service.
- kms
Key StringId - KMS key ARN.
- name String
- Name of the service.
- permission
Models List<Property Map> - Permission model configuration. See
permissionModelBlock below. - policy
Arn String - ARN of the associated resilience policy.
- region String
- regions List<String>
- List of AWS regions where the service operates.
- Map<String>
- Map of tags assigned to the resource.
Supporting Types
GetV2ServiceAssociatedSystem
- System
Arn string - ARN of the associated system.
- User
Journey List<string>Ids - List of user journey identifiers that associate the system with the service.
- System
Arn string - ARN of the associated system.
- User
Journey []stringIds - List of user journey identifiers that associate the system with the service.
- system_
arn string - ARN of the associated system.
- user_
journey_ list(string)ids - List of user journey identifiers that associate the system with the service.
- system
Arn String - ARN of the associated system.
- user
Journey List<String>Ids - List of user journey identifiers that associate the system with the service.
- system
Arn string - ARN of the associated system.
- user
Journey string[]Ids - List of user journey identifiers that associate the system with the service.
- system_
arn str - ARN of the associated system.
- user_
journey_ Sequence[str]ids - List of user journey identifiers that associate the system with the service.
- system
Arn String - ARN of the associated system.
- user
Journey List<String>Ids - List of user journey identifiers that associate the system with the service.
GetV2ServicePermissionModel
- Cross
Account List<GetRoles V2Service Permission Model Cross Account Role> - Cross-account IAM role. See
crossAccountRoleBlock below. - Invoker
Role stringName - Name of the IAM role that Resilience Hub assumes for resource discovery.
- Cross
Account []GetRoles V2Service Permission Model Cross Account Role - Cross-account IAM role. See
crossAccountRoleBlock below. - Invoker
Role stringName - Name of the IAM role that Resilience Hub assumes for resource discovery.
- cross_
account_ list(object)roles - Cross-account IAM role. See
crossAccountRoleBlock below. - invoker_
role_ stringname - Name of the IAM role that Resilience Hub assumes for resource discovery.
- cross
Account List<GetRoles V2Service Permission Model Cross Account Role> - Cross-account IAM role. See
crossAccountRoleBlock below. - invoker
Role StringName - Name of the IAM role that Resilience Hub assumes for resource discovery.
- cross
Account GetRoles V2Service Permission Model Cross Account Role[] - Cross-account IAM role. See
crossAccountRoleBlock below. - invoker
Role stringName - Name of the IAM role that Resilience Hub assumes for resource discovery.
- cross_
account_ Sequence[Getroles V2Service Permission Model Cross Account Role] - Cross-account IAM role. See
crossAccountRoleBlock below. - invoker_
role_ strname - Name of the IAM role that Resilience Hub assumes for resource discovery.
- cross
Account List<Property Map>Roles - Cross-account IAM role. See
crossAccountRoleBlock below. - invoker
Role StringName - Name of the IAM role that Resilience Hub assumes for resource discovery.
GetV2ServicePermissionModelCrossAccountRole
- Cross
Account stringRole Arn - ARN of the IAM Role for the profile.
- External
Id string - External ID used for assuming the cross-account role.
- Cross
Account stringRole Arn - ARN of the IAM Role for the profile.
- External
Id string - External ID used for assuming the cross-account role.
- cross_
account_ stringrole_ arn - ARN of the IAM Role for the profile.
- external_
id string - External ID used for assuming the cross-account role.
- cross
Account StringRole Arn - ARN of the IAM Role for the profile.
- external
Id String - External ID used for assuming the cross-account role.
- cross
Account stringRole Arn - ARN of the IAM Role for the profile.
- external
Id string - External ID used for assuming the cross-account role.
- cross_
account_ strrole_ arn - ARN of the IAM Role for the profile.
- external_
id str - External ID used for assuming the cross-account role.
- cross
Account StringRole Arn - ARN of the IAM Role for the profile.
- external
Id String - External ID used for assuming the cross-account role.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v7.46.0
published on Thursday, Sep 10, 2026 by Pulumi
published on Thursday, Sep 10, 2026 by Pulumi