We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
Resource schema for AWS::WellArchitected::AgentProfilePolicy. Attaches an IAM resource-based policy to an Agent Profile controlling cross-account access to the profile and its child resources (recommendations, goals, contexts). One policy per profile: the parent profile’s ARN is the primary identifier. Standard CloudFormation policy-attachment pattern (see AWS::S3::BucketPolicy).
Using getAgentProfilePolicy
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 getAgentProfilePolicy(args: GetAgentProfilePolicyArgs, opts?: InvokeOptions): Promise<GetAgentProfilePolicyResult>
function getAgentProfilePolicyOutput(args: GetAgentProfilePolicyOutputArgs, opts?: InvokeOutputOptions): Output<GetAgentProfilePolicyResult>def get_agent_profile_policy(profile_arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAgentProfilePolicyResult
def get_agent_profile_policy_output(profile_arn: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetAgentProfilePolicyResult]func LookupAgentProfilePolicy(ctx *Context, args *LookupAgentProfilePolicyArgs, opts ...InvokeOption) (*LookupAgentProfilePolicyResult, error)
func LookupAgentProfilePolicyOutput(ctx *Context, args *LookupAgentProfilePolicyOutputArgs, opts ...InvokeOption) LookupAgentProfilePolicyResultOutput> Note: This function is named LookupAgentProfilePolicy in the Go SDK.
public static class GetAgentProfilePolicy
{
public static Task<GetAgentProfilePolicyResult> InvokeAsync(GetAgentProfilePolicyArgs args, InvokeOptions? opts = null)
public static Output<GetAgentProfilePolicyResult> Invoke(GetAgentProfilePolicyInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetAgentProfilePolicyResult> Invoke(GetAgentProfilePolicyInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetAgentProfilePolicyResult> getAgentProfilePolicy(GetAgentProfilePolicyArgs args, InvokeOptions options)
public static Output<GetAgentProfilePolicyResult> getAgentProfilePolicy(GetAgentProfilePolicyArgs args, InvokeOptions options)
public static Output<GetAgentProfilePolicyResult> getAgentProfilePolicy(GetAgentProfilePolicyArgs args, InvokeOutputOptions options)
fn::invoke:
function: aws-native:wellarchitected:getAgentProfilePolicy
arguments:
# arguments dictionarydata "aws-native_wellarchitected_get_agent_profile_policy" "name" {
# arguments
}The following arguments are supported:
- Profile
Arn string - The Amazon Resource Name (ARN) of the parent Agent Profile the policy is attached to. Pass
!GetAtt(or!Ref) of the parent AWS::WellArchitected::AgentProfile to flow its ARN here. Also serves as the primary identifier of this policy attachment.
- Profile
Arn string - The Amazon Resource Name (ARN) of the parent Agent Profile the policy is attached to. Pass
!GetAtt(or!Ref) of the parent AWS::WellArchitected::AgentProfile to flow its ARN here. Also serves as the primary identifier of this policy attachment.
- profile_
arn string - The Amazon Resource Name (ARN) of the parent Agent Profile the policy is attached to. Pass
!GetAtt(or!Ref) of the parent AWS::WellArchitected::AgentProfile to flow its ARN here. Also serves as the primary identifier of this policy attachment.
- profile
Arn String - The Amazon Resource Name (ARN) of the parent Agent Profile the policy is attached to. Pass
!GetAtt(or!Ref) of the parent AWS::WellArchitected::AgentProfile to flow its ARN here. Also serves as the primary identifier of this policy attachment.
- profile
Arn string - The Amazon Resource Name (ARN) of the parent Agent Profile the policy is attached to. Pass
!GetAtt(or!Ref) of the parent AWS::WellArchitected::AgentProfile to flow its ARN here. Also serves as the primary identifier of this policy attachment.
- profile_
arn str - The Amazon Resource Name (ARN) of the parent Agent Profile the policy is attached to. Pass
!GetAtt(or!Ref) of the parent AWS::WellArchitected::AgentProfile to flow its ARN here. Also serves as the primary identifier of this policy attachment.
- profile
Arn String - The Amazon Resource Name (ARN) of the parent Agent Profile the policy is attached to. Pass
!GetAtt(or!Ref) of the parent AWS::WellArchitected::AgentProfile to flow its ARN here. Also serves as the primary identifier of this policy attachment.
getAgentProfilePolicy Result
The following output properties are available:
- Policy string
- The IAM resource-based policy document as a JSON string. Allow-only statements, no negation condition operators, maximum 51200 characters.
- Policy string
- The IAM resource-based policy document as a JSON string. Allow-only statements, no negation condition operators, maximum 51200 characters.
- policy string
- The IAM resource-based policy document as a JSON string. Allow-only statements, no negation condition operators, maximum 51200 characters.
- policy String
- The IAM resource-based policy document as a JSON string. Allow-only statements, no negation condition operators, maximum 51200 characters.
- policy string
- The IAM resource-based policy document as a JSON string. Allow-only statements, no negation condition operators, maximum 51200 characters.
- policy str
- The IAM resource-based policy document as a JSON string. Allow-only statements, no negation condition operators, maximum 51200 characters.
- policy String
- The IAM resource-based policy document as a JSON string. Allow-only statements, no negation condition operators, maximum 51200 characters.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi